<div dir="ltr">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)<div><br></div><div style>I think it's like so:</div>
<div style>- pkg_resources.Distribution.from_location will treat "xdist-dev" as the version.</div><div style>- distlib.util.split_filename won't parse it because versions have to start with [0-9].</div><div style>
- pip will accept this as a "pytest" archive and install it potentially if no other version matches greater.</div><div style><br></div><div style>what's the right answer?</div><div style><br></div><div style>
The historical-compatible answer is to be confused when projects have "-".</div><div style>so stay confused? or get rigid like distlib?</div><div style><br></div><div style>Marcus</div></div>