[RFC] Add support to virtualenv for out implementation of pypy

David Naylor dbn at freebsd.org
Tue Mar 11 21:15:34 UTC 2014


Hi,

The version of pypy in ports is not a standard version, as it tries to follow 
the directory layout of python and not have everything in its own 
subdirectory.  

As a result of this virtualenv support does not work.  A large portion of the 
problem is that virtualenv hard codes directory paths that it should be 
deducing from the python libraries (such as sysconfig or distutils.sysconfig).  

Please find attached for a patch that adds support for our pypy to virtualenv, 
I have tried to do it in a manor that is generic and should be upstreamable 
(except for some site-packages) related stuff.  

When testing this please use lang/pypy-devel, or apply the sysconfig.py patch 
- also attached - to the sysconfig.py found in /usr/local/lib/pypy-2.2.  

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtualenv.diff
Type: text/x-patch
Size: 27423 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20140311/5810a6c9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysconfig.py.diff
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20140311/5810a6c9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 964 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20140311/5810a6c9/attachment.sig>


More information about the freebsd-python mailing list