[pypy-dev] pypy 1.4 and virtualenv 1.5.1

Michael Foord fuzzyman at gmail.com
Fri Nov 26 23:15:11 CET 2010


Hello all,

Congratulations on the new release.

Unfortunately it seems that virtualenv 1.5.1 and pypy 1.4 do not play well
together on Mac OS X. At least the "--distribute" option doesn't work, which
is needed by tox.

I tried to create an issue on the PyPy issue tracker, but new registrants
are unable to create issues:

Here is the output on Linux:

$ virtualenv -p /compile/pypy-1.4/bin/pypy pypy --distribute
--no-site-packages
Running virtualenv with interpreter /compile/pypy-1.4/bin/pypy
New pypy-c executable in pypy/bin/pypy
Also creating executable in pypy/bin/pypy-c
Installing
distribute....................................................................................................................................................................................done.


Here is the failed output on OS X:

$ virtualenv -p /compile/pypy-1.4-osx/bin/pypy pypy --distribute
--no-site-packages
Running virtualenv with interpreter /compile/pypy-1.4-osx/bin/pypy
New pypy-c executable in pypy/bin/pypy
Also creating executable in pypy/bin/pypy-c
Please make sure you remove any previous custom paths from your
/Volumes/Second Drive/michael/.pydistutils.cfg file.
Installing distribute................................done.
Complete output from command /compile/pypy/bin/pypy
/compile/pypy/bin/easy_install /Library/Frameworks/Python.fra...ar.gz:
Traceback (most recent call last):
File "app_main.py", line 33, in run_toplevel
IOError: [Errno 2] No such file or directory: '/compile/pypy/bin/easy_install'
----------------------------------------
Traceback (most recent call last):
File "app_main.py", line 33, in run_toplevel
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
line 1647, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
line 558, in main
prompt=options.prompt)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
line 656, in create_environment
install_pip(py_executable)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
line 415, in install_pip
filter_stdout=_filter_setup)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenv.py",
line 624, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /compile/pypy/bin/pypy /compile/pypy/bin/easy_install
/Library/Frameworks/Python.fra...ar.gz failed with error code 1


The nice thing is that for unittest2 and mock all tests pass with pypy 1.4.
Not unexpected, but still nice.

All the best,

Michael Foord

-- 
http://www.voidspace.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20101126/d8f7588a/attachment.html>


More information about the Pypy-dev mailing list