[Distutils] PyPI mirroring and Changing the .egg-info PEPs
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
>> directories. Returns the directory path that contains a PKG-INFO
>> that matches
>> `pkg_name` for the `name` metadata. Notice that there should be at
>> one result. If more than one path matches the pkg_name, a
>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2224 bytes
Desc: not available
More information about the Distutils-SIG