On 23 Mar, 2009, at 16:43, Tarek Ziadé wrote:
"- get_egg_info(pkg_name) -> path or NoneScans 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 DistutilsErroris 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.
Ronald
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
