[Distutils] How to get list of package requirements from PyPI without downloading egg?
Jeremy Kloth
jeremy.kloth at 4suite.org
Thu Oct 26 08:53:26 CEST 2006
On Thursday 26 October 2006 12:21 am, Phillip J. Eby wrote:
> At 12:05 AM 10/26/2006 -0600, Jeremy Kloth wrote:
> >Except Cheeseshop already supports the PEP 314 metadeta fields Requires,
> >Provides and Obsoletes. They are available to all packages built with
> > Python 2.5 distutils.
>
> Indeed it does... but that information is both unused and useless at the
> moment.
Could it be that it is unused because Pyhon 2.5 was just released? That is
when these fields made it into Distutils.
> >That said, the community still needs to agree on what the names of the
> >requirements are.
>
> Yep - like I said, it's both unused and useless. :)
>
> >It solves the Python version problem by defining the PEP 345 metadata
> > field Requires-Python.
>
> No, it doesn't, actually. My statement was that the requirements
> *themselves* can be version and platform specific. PEP 314 only allows for
> one set of requirements for a package, not one set of requirements per
> version and platform.
So how do you specify an exact platform and Python version with setuptools'
install_requires? They are, IMO, used at the same level.
> Personally, I think PEP 314 should be rejected, as this issue is only one
> of its flaws. I'm surprised to see it is now marked "final", given the
> near total lack of discussion on it, except for me periodically posting
> about its flaws (since 2005, no less). None of the new fields except
> Download-URL are actually useful.
It is a little late now. Those fields are part of Python 2.5 so they are
going to be around for at least 3 more years (if the 2.3 to 2.5 timeline is
any indicator). So how about doing something to actually *improve* the fields
besides just complaining?
Going forward with (probable) modifications to the fields' allowed values, it
should be fairly easy to expand the allowed values as the need arises since
the current values are so restrictive.
> PEP 314 delenda est.
Now there is a postitive attitude...
--
Jeremy Kloth
http://4suite.org/
More information about the Distutils-SIG
mailing list