[Python-Dev] PEP 376 and PEP 302 - allowing import hooks to provide distribution metadata

Tarek Ziadé ziade.tarek at gmail.com
Mon Jul 6 09:50:09 CEST 2009


2009/7/6 Paul Moore <p.f.moore at gmail.com>:
> 2009/7/6 P.J. Eby <pje at telecommunity.com>:
>> At 08:43 PM 7/5/2009 +0200, Tarek Ziadé wrote:
>>>
>>> But if it's based on PEP 302 protocols and if the pkgutil code works
>>> with the sys.meta_path hook,
>>> setuptools could then provide its loader, based on its EggFormats and
>>> act as a provider without being broken.
>>
>> You misunderstand me.  The whole point of putting .egg-info in distutils in
>> the first place was to enable setuptools to detect the presence of
>> disutils-installed packages.  That's what's broken by changing the name.
>

Forget about my previous mail, I didn't see that answer,

> This implies that there is no possibility that setuptools will be
> changed to support the new standard. That's patently false. Whether
> you *want* to change setuptools in such a way is up to you. And it's
> worth a note in the PEP if this change is made, that it will require a
> change to setuptools if that package is still to recognise
> distutils-installed packages.

+1

setuptools is built on the top of distutils, not the contrary. And if setuptools
wants to query installed distribution, it will have to be changed to use the
query functions added in pkgutil.

Tarek


More information about the Python-Dev mailing list