<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The setuptools.package_index API, however, *does* support parsing<br>
sdist names, it's just that it generates a *list* of possibilities,<br></blockquote><div><br></div><div style>oh, ok, "setuptools.package_index.distros_for_url"</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thus, tools using this API can contextually decide which to consider<br>
the "real" interpretation, based on context. This method is used by<br>
easy_install; I don't know if pip does as well.<br></blockquote><div><br></div><div style>how will context decide between the version being "dev" or "xdist-dev"?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
> - pip will accept this as a "pytest" archive and install it potentially if<br>
> no other version matches greater.<br>
<br>
</div>Does it also accept it as "pytest-xdist"?</blockquote><div><br></div><div style>yes. without getting into too many details, pip basically searches for matches by comparing the archive name with "<requirement>-".</div>
<div style>I.e when looking for "pytest" archives, match on "pytest-". and the version is the rest.</div><div><br></div><div><br></div></div></div></div>