[Distutils] virtualenv patch
Tres Seaver
tseaver at palladion.com
Fri Sep 21 00:11:27 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've been working with virtualenv-0.8.4 on Linux, and found two bugs
when using it to built environments outside the tree containing the
source Python's 'lib' directory.
My setup:
- I have a custom-built Python, which I use for all Zope-related work,
in '~/projects/Zope/bin/python'.
- I also have a "virtual" Python, built from /usr/bin/python using the
old 'virtual_python.py' script, in '~/bin/python'.
- I was trying to use virtualenv.py to build out new environments
under '~/tmp', using the "Zope" python as the "source" Python.
The bugs:
- This first one causes the 'exec_prefix' search to blow up if another
lib directory *is* "above" the environment; the 'lib-dyload' from
the "foreign" Python ends up on sys.path.
- The next one is that distutils' attempts to parse 'config/Makefile'
barfs.
The attached patch fixes both, by adding 'lib-dynload' and 'config' to
the set of things which are copied / linked into the target environment.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG8vAP+gerLs4ltQ4RArabAJ9bJvdqIMIRShDKJL2B2931KE8pEQCgoXCa
eGflzC6K2yGyV8yHHgIkB+k=
=DlKN
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtualenv-0.8.4-out_of_tree.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20070920/ecd2e10c/attachment.bin
More information about the Distutils-SIG
mailing list