[Distutils] unparseable sdist filenames

Donald Stufft donald at stufft.io
Mon Sep 30 20:18:50 CEST 2013


On Sep 30, 2013, at 1:55 PM, Marcus Smith <qwcode at gmail.com> wrote:

> so, take a case like so  "pytest-xdist-dev.tar.gz" (or any sdist with "-" in the project name, and a version starting with a string)
> 
> I think it's like so:
> - pkg_resources.Distribution.from_location will treat "xdist-dev" as the version.
> - distlib.util.split_filename won't parse it because versions have to start with [0-9].
> - pip will accept this as a "pytest" archive and install it potentially if no other version matches greater.
> 
> what's the right answer?
> 
> The historical-compatible answer is to be confused when projects have "-".
> so stay confused? or get rigid like distlib?
> 
> Marcus
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

I think we're going to need more data to figure out a solution. We need to see how many things are going to be affected by this. If it's not a massive amount I think we should get strict.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130930/8b8a83be/attachment.sig>


More information about the Distutils-SIG mailing list