[Distutils] virtual-python.py, sys.prefix, and Mac

Ian Bicking ianb at colorstudy.com
Sat Sep 15 18:09:44 CEST 2007


Hi all.  I'm kind of giving up on workingenv, and have started working 
from virtual-python as a basis instead 
(http://pypi.python.org/pypi/virtualenv/).

So the basic technique here is to copy the executable into 
/ENV/bin/python, and then sys.prefix will be '/ENV'.  The standard 
Python installed on a Mac doesn't seem to do this -- the prefix remains 
'/opt/local/Library/Frameworks/Python.framework/Versions/2.4' 
regardless.  (Custom built Python's on Mac work like normal.)

Does anyone know a way to get the normal effect on this Mac Python?

-- 
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers


More information about the Distutils-SIG mailing list