Port for python26: batteries not included (or available)?

Ryan Schmidt ryandesign at macports.org
Sun Oct 5 20:23:42 PDT 2008


On Oct 5, 2008, at 21:10, Landon Fuller wrote:

> On Oct 5, 2008, at 7:03 PM, Ryan Schmidt wrote:
>
>> On Oct 5, 2008, at 14:18, Landon Fuller wrote:
>>
>>> On Oct 4, 2008, at 7:35 AM, Rainer Müller wrote:
>>>
>>>> It's just too early to request py26-* ports. There is a pending  
>>>> patch
>>>> from jmr to unify the python module ports and reduce the mess we
>>>> created
>>>> with py-* and py25-*.
>>>>
>>>> http://trac.macports.org/ticket/16723
>>>>
>>>> Before we go on creating py26-* ports this patch should be  
>>>> considered.
>>>
>>> Won't the use of variants to select between 2.4, 2.5, and 3.0 in the
>>> same port result in an inability to install the same Python  
>>> module for
>>> more than one version of Python?
>>
>> The description of the above ticket says:
>>
>> "Here is a portgroup that should be able to replace the current  
>> python25 and python24 groups, and can install for any combination  
>> of the available python versions at once via variants."
>>
>> So it sounds like e.g. the +python24 and +python25 variants would  
>> not conflict with one another, would not be mutually exclusive.
>
> But two installed ports with the same name (but different variants)  
> will conflict. The the port group would also need to change the  
> port's name based on the selected python variant , but that  would  
> wreak havoc with indexing, etc.

As I understood it, the port name wouldn't change; rather, if you  
want to have e.g. setuptools installed for python 2.4, 2.5, and 2.6,  
you would

sudo port install py-setuptools +python24 +python25 +python26

Assuming I've got that right, what's not clear to me is what you are  
meant to do if you have installed that and then later decide you want  
to also support python 3.0. We don't have a command to reinstall a  
port with an added variant (right?) so I guess you would have to  
uninstall py-setuptools +python24 +python25 +python26 and then  
install py-setuptools +python24 +python25 +python26 +python30. Repeat  
for all installed python ports, which would be a chore. And are we  
sure that all python ports work with all versions of python? What  
happens if they don't?




More information about the macports-users mailing list