-----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          [EMAIL PROTECTED]
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-----
--- virtualenv-0.8.4/virtualenv.py	2007-09-20 15:22:01.000000000 -0400
+++ virtualenv-0.8.4/virtualenv.py-TS	2007-09-20 17:56:12.000000000 -0400
@@ -23,7 +23,8 @@
 REQUIRED_MODULES = ['os', 'posix', 'posixpath', 'ntpath', 'fnmatch',
                     'locale', 'encodings', 'codecs',
                     'stat', 'UserDict', 'readline', 'copy_reg', 'types',
-                    're', 'sre', 'sre_parse', 'sre_constants', 'sre_compile']
+                    're', 'sre', 'sre_parse', 'sre_constants', 'sre_compile',
+                    'lib-dynload', 'config']
 
 class Logger(object):
 
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to