[Distutils] why do we still put version numbers into dist-info folders

Daniel Holth dholth at gmail.com
Fri Sep 1 16:38:43 EDT 2017


A long time ago pkg_resources was able to sometimes get the version number
only from the .egg-info folder name, and skip opening the metadata at all
when that data was not needed. We might always do listdir() for path in
sys.path and parse every METADATA on the first pkg_resources import.

On Fri, Sep 1, 2017 at 4:32 PM Alex Grönholm <alex.gronholm at nextday.fi>
wrote:

> +1 for getting rid of version numbers in the dist-info folders.
>
>
> RonnyPfannschmidt kirjoitti 01.09.2017 klo 20:32:
> > Hi everyone,
> >
> > a while now i have wondered - why put version numbers into the dist info
> > folders
> > not only makes it lookup more expensive (need to search for a
> > distribution->folder map)
> > its also not serving a purpose, as the rest of the package is
> > unversioned at the root of site-packages.
> >
> > in addition all those versions in folder names, that serve no purpose,
> > and create duplication/conflicts now creep into other peps as well,
> >
> > please lets take a note at setuptools - for editable installs it wont
> > put a version in to the egg info folder
> >
> > and imho thats the correct way to deal with data thats not actually
> > versioned at that level where its being stored.
> >
> >
> > -- Ronny
> >
> > _______________________________________________
> > Distutils-SIG maillist  -  Distutils-SIG at python.org
> > https://mail.python.org/mailman/listinfo/distutils-sig
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20170901/0557fd89/attachment.html>


More information about the Distutils-SIG mailing list