[Distutils] PyPI mirroring and Changing the .egg-info PEPs

Ronald Oussoren ronaldoussoren at mac.com
Tue Mar 24 13:32:55 CET 2009

On 23 Mar, 2009, at 16:43, Tarek Ziadé wrote:
>> "- get_egg_info(pkg_name) -> path or None
>>  Scans all site-packages directories and looks for all  
>> `pkg_name.egg-info`
>>  directories. Returns the directory path that contains a PKG-INFO  
>> that matches
>>  `pkg_name` for the `name` metadata. Notice that there should be at  
>> most
>>  one result. If more than one path matches the pkg_name, a  
>> DistutilsError
>>  is raised.
>>  If the directory is not found, returns None."
>> Currently, if there are multiple paths that might be importable,
>> whichever one is found first with sys.path is imported, and conflicts
>> aren't really considered.  raising DistutilsError seems like it
>> changes this.
> Yes, while thinking about this API, I thaught it was a good idea to
> raise if there's a conflict,
> to make sure there's a healthy environement.

Raising an error would make it a lot harder to temporarily place a  
directory containing an egg on $PYTHONPATH, for instance to test if a  
new release of a library will work in an environment before actually  
installing it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090324/6321bb32/attachment.bin>

More information about the Distutils-SIG mailing list