clearlinux / autospec

RPM packaging automation tool
GNU General Public License v3.0
100 stars 59 forks source link

pip install does not install version-qualified package #652

Open phmccarty opened 3 years ago

phmccarty commented 3 years ago

When collecting PyPI metadata for PyPI package provides/requires, autospec runs pip install PACKAGE in a virtualenv. Instead, it should be running pip install PACKAGE==VERSION for the target package version.

This will fix issues that occasionally appear when a package is intentionally older than latest (e.g. Django remaining on the LTS series), and it will help avoid invalid queries when naming clashes exist between PyPI and other ecosystems (e.g. meld is a GNOME package, and a different project named meld is a PyPI package, and both use setuptools to build).

phmccarty commented 3 years ago

I posted a possible solution for this issue to a branch:

https://github.com/phmccarty/autospec/commits/issue652

I'm not sure about this approach though, so I'll leave it there for now.