[96052] trunk/dports/python

Yury Selivanov yselivanov.ml at gmail.com
Tue Jul 31 12:15:41 PDT 2012


On 2012-07-31, at 3:02 PM, Lawrence Velázquez <larry.velazquez at gmail.com> wrote:

> On Jul 31, 2012, at 2:56 p.m., Lawrence Velázquez wrote:
> 
>> You should be able to explicitly specify subport blocks for each Python version (e.g., py27-html5lib, py31-html5lib, etc.) and then define separate patchfiles in each block. I haven't done this myself, though, so there may be a better way to do it.
> 
> You might be able do something with python.version (e.g., "27") or python.branch ("2.7"). For instance, if you name your patchfiles "whatever-2.7.patch", "whatever-3.1.patch", etc., you could specify the correct one in the portfile as "whatever-${python.branch}.patch".

Thanks! Will try it soon.

-
Yury


More information about the macports-dev mailing list