[Distutils] unparseable sdist filenames

Marcus Smith qwcode at gmail.com
Mon Sep 30 19:55:51 CEST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130930/dd854d18/attachment.html>


More information about the Distutils-SIG mailing list