[Distutils] Enabling local distutils.cfg usage

Tres Seaver tseaver at palladion.com
Tue Oct 9 20:43:39 CEST 2007


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

Phillip J. Eby wrote:

> By the way, at OSAF we had a similar issue recently with needing a 
> local distutils.cfg; the recipe for creating a simple "virtual 
> distutils" in case anyone needs it is:
> 
> distutils.py:
> __path__ = ['/path/to/the/real/distutils']  # yes, it ends with 'distutils'
> from distutils.__init__ import __version__, __revision__, __doc__
> 
> You can then put a distutils.cfg alongside it, in a directory that's 
> on sys.path *before* the real disutils.  (And you'll need, of course, 
> to know where the real distutils is.)

Cool, thanks.  That solution (importing the other names into the virtual
module) probably suppresses some weird edge-case bugs I hadn't stumbled
over in mine yet.

Ian, I withdraw my "motion" in favor of Phillip's "friendly amendment." ;)


Ters.
- --
===================================================================
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

iD8DBQFHC8vb+gerLs4ltQ4RAneYAJ0UHSF3x4uqDZZvjfvGCKwRdtHh7wCgsZzX
N+kqXa5CllJ3PQW+cHqtotM=
=w+Vh
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list