[Distutils] PEP 376 up-to-date
pje at telecommunity.com
Tue May 26 15:51:16 CEST 2009
At 11:01 AM 5/26/2009 +0200, Tarek Ziadé wrote:
>Just one point though:
>- do we want to scan egg-info directories that are *directly* added in
No. Such a directory does not represent an importable egg on sys.path.
If you mean an .egg file or directory that's directly on sys.path,
then that's a bit different. Are you planning to support those? In
that event you would need another EggInfo subclass anyway, and you
could have the directory (or "PathEntry", perhaps?) constructor
simply wrap a single such EggInfo in that event.
Or, you can handle it the way pkg_resources does, which is to convert
target paths into PEP 302 importer objects, and then use the
importer's type to determine what sort of handler should be used for it.
More information about the Distutils-SIG