[Distutils] unparseable sdist filenames
PJ Eby
pje at telecommunity.com
Mon Sep 30 23:40:03 CEST 2013
On Mon, Sep 30, 2013 at 4:11 PM, Marcus Smith <qwcode at gmail.com> wrote:
>
>> The setuptools.package_index API, however, *does* support parsing
>> sdist names, it's just that it generates a *list* of possibilities,
>
>
> oh, ok, "setuptools.package_index.distros_for_url"
>
>>
>> Thus, tools using this API can contextually decide which to consider
>> the "real" interpretation, based on context. This method is used by
>> easy_install; I don't know if pip does as well.
>
>
> how will context decide between the version being "dev" or "xdist-dev"?
By whether you asked to install "pytest-xdist" or "pytest", and by
whether "dev" or "xdist-dev" match your version requirements. In
practice this tends to only be a problem if you are:
1. Installing the two packages during the same run, and
2. Aren't using version specifiers.
More information about the Distutils-SIG
mailing list