[Distutils] Review of latest draft of PEP 426 (Python package etadata v1.3)

Daniel Holth dholth at gmail.com
Tue Jan 29 16:39:17 CET 2013

On Tue, Jan 29, 2013 at 10:19 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk>wrote:

> Paul Moore <p.f.moore <at> gmail.com> writes:
> > (Warning - bikeshed discussion. I won't prolong the debate beyond this
> > one comment. I'm happy for Nick to simply pronounce on this). I'm not
> > sure I like having "setuptools" as a name mandated in a PEP (just
> > because it's a 3rd party package). Does the distutils LooseVersion
> > class not give the same sort results? If it does, I would not want to
> Hence my suggestion of "legacy". The setuptools method is different from
> LooseVersion - for example, it normalises things so that e.g. X.Y.0 will be
> equivalent to X.Y for sorting (and comparison) purposes.
> >>> import distutils.version
> >>> v1 = distutils.version.LooseVersion('1.0')
> >>> v2 = distutils.version.LooseVersion('1.0.0')
> >>> v1 == v2
> False
> >>> v1 < v2
> True

Perhaps we can move the PEP along without agreeing on the set of values? I
would rather not use "legacy" because the term will go out of date. IIUC
"setuptools" / "pkg_resources" sorting is what people actually use in the
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130129/b3b9cc35/attachment.html>

More information about the Distutils-SIG mailing list