Depending on python2.x for building

Frank Schima macsforever2000 at macports.org
Sun Dec 18 19:27:43 PST 2011


On Dec 18, 2011, at 4:50 PM, Jeremy Huddleston wrote:

> So it turns out that llvm doesn't build well with python3 (https://trac.macports.org/ticket/32575).  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. 


Cheers!
Frank



More information about the macports-dev mailing list