pypa/virtualenv — Issue #237: virtualenv does not work with symlinked python on OSX snowleopard
Author: k0s
Created: 2012-03-08 18:13:33+00:00
State: open

tools-r3-snow-001:jhammel cltbld$ python virtualenv/virtualenv.py -v tmp
Creating tmp/lib/python2.5
Symlinking Python bootstrap modules
Symlinking tmp/lib/python2.5/config
Symlinking tmp/lib/python2.5/lib-dynload
Symlinking tmp/lib/python2.5/os.py
Ignoring built-in bootstrap module: posix
Symlinking tmp/lib/python2.5/posixpath.py
Cannot import bootstrap module: nt
Symlinking tmp/lib/python2.5/ntpath.py
Cannot import bootstrap module: genericpath
Symlinking tmp/lib/python2.5/fnmatch.py
Symlinking tmp/lib/python2.5/locale.py
Symlinking tmp/lib/python2.5/encodings
Symlinking tmp/lib/python2.5/codecs.py
Symlinking tmp/lib/python2.5/stat.py
Symlinking tmp/lib/python2.5/UserDict.py
Symlinking tmp/lib/python2.5/copy_reg.py
Symlinking tmp/lib/python2.5/types.py
Symlinking tmp/lib/python2.5/re.py
Symlinking tmp/lib/python2.5/sre.py
Symlinking tmp/lib/python2.5/sre_parse.py
Symlinking tmp/lib/python2.5/sre_constants.py
Symlinking tmp/lib/python2.5/sre_compile.py
Creating tmp/lib/python2.5/site-packages
Writing tmp/lib/python2.5/site.py
Writing tmp/lib/python2.5/orig-prefix.txt
Writing tmp/lib/python2.5/no-global-site-packages.txt
Creating parent directories for tmp/include
Symlinking tmp/include/python2.5
Creating tmp/bin
New python executable in tmp/bin/python
Changed mode of tmp/bin/python to 0755
Symlinking tmp/.Python
Testing executable with tmp/bin/python -c "import sys;out=sys.stdout;getattr(out, "buffer", out).write(sys.prefix.encode("utf-8"))"
ERROR: The executable tmp/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/System/Library/Frameworks/Python.framework/Versions/2.5' (should be u'/Users/cltbld/jhammel/tmp')
ERROR: virtualenv is not compatible with this system or executable
tools-r3-snow-001:jhammel cltbld$ ls -l `which python`
lrwxr-xr-x 1 root staff 18 May 24 2010 /Users/cltbld/bin/python -> /usr/bin/python2.5
tools-r3-snow-001:jhammel cltbld$ rm -rf tmp/
tools-r3-snow-001:jhammel cltbld$ /usr/bin/python2.5 virtualenv/virtualenv.py -v tmp
Creating tmp/lib/python2.5
Symlinking Python bootstrap modules
Symlinking tmp/lib/python2.5/config
Symlinking tmp/lib/python2.5/lib-dynload
Symlinking tmp/lib/python2.5/os.py
Ignoring built-in bootstrap module: posix
Symlinking tmp/lib/python2.5/posixpath.py
Cannot import bootstrap module: nt
Symlinking tmp/lib/python2.5/ntpath.py
Cannot import bootstrap module: genericpath
Symlinking tmp/lib/python2.5/fnmatch.py
Symlinking tmp/lib/python2.5/locale.py
Symlinking tmp/lib/python2.5/encodings
Symlinking tmp/lib/python2.5/codecs.py
Symlinking tmp/lib/python2.5/stat.py
Symlinking tmp/lib/python2.5/UserDict.py
Symlinking tmp/lib/python2.5/copy_reg.py
Symlinking tmp/lib/python2.5/types.py
Symlinking tmp/lib/python2.5/re.py
Symlinking tmp/lib/python2.5/sre.py
Symlinking tmp/lib/python2.5/sre_parse.py
Symlinking tmp/lib/python2.5/sre_constants.py
Symlinking tmp/lib/python2.5/sre_compile.py
Creating tmp/lib/python2.5/site-packages
Writing tmp/lib/python2.5/site.py
Writing tmp/lib/python2.5/orig-prefix.txt
Writing tmp/lib/python2.5/no-global-site-packages.txt
Creating parent directories for tmp/include
Symlinking tmp/include/python2.5
Creating tmp/bin
New python executable in tmp/bin/python2.5
Changed mode of tmp/bin/python2.5 to 0755
Also creating executable in tmp/bin/python
Changed mode of tmp/bin/python to 0755
Symlinking tmp/.Python
Testing executable with tmp/bin/python2.5 -c "import sys;out=sys.stdout;getattr(out, "buffer", out).write(sys.prefix.encode("utf-8"))"
Got sys.prefix result: u'/Users/cltbld/jhammel/tmp'
Creating tmp/lib/python2.5/distutils
Writing tmp/lib/python2.5/distutils/__init__.py
Writing tmp/lib/python2.5/distutils/distutils.cfg
Using existing setuptools egg: /Users/cltbld/jhammel/virtualenv/virtualenv_support/setuptools-0.6c11-py2.5.egg
Installing setuptools..........
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
...Installing setuptools...done.
Installing existing pip-1.1.tar.gz distribution: /Users/cltbld/jhammel/virtualenv/virtualenv_support/pip-1.1.tar.gz
Installing pip...
Processing pip-1.1.tar.gz
Running pip-1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bsAD4y/pip-1.1/egg-dist-tmp-ovM-cN
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.1 to easy-install.pth file
Processing dependencies for pip==1.1
Finished processing dependencies for pip==1.1
...Installing pip...done.
Writing tmp/bin/activate
Writing tmp/bin/activate.fish
Writing tmp/bin/activate_this.py