[Distutils] Enabling local distutils.cfg usage

Tres Seaver tseaver at palladion.com
Tue Oct 9 23:12:57 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Bicking wrote:
> Tres Seaver wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Ian Bicking wrote:
>>> Tres Seaver wrote:
>>>> When building a virtual environment, I'd like to be able to store
>>>> global distutils configuration options which are custom to that
>>>> environment.  However, both setuptools and distutils expect to
>>>> read / write that file relative to the directory of
>>>> 'distutils.__file__', which is located in the *source*
>>>> environment under virtualenv 0.8.4::
>>> This should be working in virtualenv trunk; I had to switch up the way 
>>> sys.path was constructed some, because the way it was the system path 
>>> came before the virtualenv path, so a virtual distutils wouldn't be seen.
>> Cool. Where is the trunk SVN, by the way?
> 
> At http://svn.colorstudy.com/virtualenv/trunk

Thanks.  Here's a small bugfix:

Index: virtualenv.py
===================================================================
- --- virtualenv.py       (revision 3045)
+++ virtualenv.py       (working copy)
@@ -482,7 +482,7 @@
             call_subprocess(
                 ["install_name_tool", "-change",
                  os.path.join(sys.prefix, 'Python'),
- -                 os.path.abspath(os.path.join(frmdir, 'Python'))
+                 os.path.abspath(os.path.join(frmdir, 'Python')),
                  py_executable])
         except:
             logger.fatal(




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

iD8DBQFHC+7Z+gerLs4ltQ4RAsXtAJ0e1RNCYl1CuzeCv3L6RTv6ykGj1ACfXCFE
ieg5WNgGbMah4PDFAAzLAm0=
=8+ZX
-----END PGP SIGNATURE-----


More information about the Distutils-SIG mailing list