Depending on python2.x for building

Jeremy Huddleston jeremyhu at
Sun Dec 18 20:59:17 PST 2011

On Dec 18, 2011, at 19:27, Frank Schima wrote:

> On Dec 18, 2011, at 4:50 PM, Jeremy Huddleston wrote:
>> So it turns out that llvm doesn't build well with python3 (  It's been building fine in most cases without the python dependency in the port by picking up /usr/bin/python or ${prefix}/bin/python if a 2.x python is port selected.
>> What's the "best practices" way to handle this?  I don't want to use /usr/bin/python, and I don't want to deal with multiple python variants.  Is there a way to set $PYHON to "any" 2.x python on the system (and build one if there is none available)?
> I think using python variants is the best practice. That's what other ports do that need python. Just set python27 to be the default variant. Add python26 and python25 variants and that should be good. Most people who use python should have their desired python version set in their local variants.conf file. 

Yeah, that's what I did for xcb, but it was a PITA... we should have a better way to deal with this.

More information about the macports-dev mailing list