[Distutils] Disabling --single-version-externally-managed
a.badger at gmail.com
Sun Sep 2 04:07:26 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Phillip J. Eby wrote:
> At 01:38 PM 9/1/2007 -0700, Toshio Kuratomi wrote:
>> I'm seeing an actual problem with this when starting with the following
>> ['/usr/bin', '/usr/lib/python25.zip', '/usr/lib/python2.5',
>> '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
>> '/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages',
> Why do you have this on sys.path? .egg-info files or directories should
> never appear on sys.path.
/me looks at the cvs log for the spec file that generated TestGears
Looks like the person that built the file initially in 2005 created a
zipped-egg and hand created a .pth to go with it. A new maintainer took
over and when they rebuilt the package for the setuptools that changed
- --root to include --single-version-externally-managed they were confused
and changed the .pth to include the egg-info directory.
/me makes a change in cvs and removes the package from his system for now.
>> /usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg is being
>> inserted before '/usr/lib/python2.5/site-packages'. Then another
>> /usr/lib/python2.5/site-packages is entering the method and being placed
>> after /usr/lib/python2.5... which places it before the CherryPy egg.
> That sounds odd, since there should not be a need to add site-packages
> more than once. In fact, that's what sounds like the actual bug here,
> since IIRC .insert_on() should never be called on a distribution whose
> .location is already on sys.path.
Yeah, I thought it was odd too :-). But I was only instrumenting the
code to figure out what was going on so I took it at face value.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Distutils-SIG