Poetry chooses the wheel package for a different Python version #2401
Labels
area/solver
Related to the dependency resolver
kind/bug
Something isn't working as expected
status/duplicate
Duplicate issues
-vvv
option).Issue
I'm trying to install the library scrapy-rss.
On Pypi there are multiple different wheels, one for each Python version. Those wheels have actually different dependencies. The wheel
scrapy_rss-0.1.9-py38-none-any.whl
(for Python 3.8.2) simply has the dependencyscrapy>=1.3.1
, while the wheelscrapy_rss-0.1.9-py33-none-any.whl
has the dependencyscrapy<1.5.0
.I'm using Python 3.8.2 inside the poetry virtualenv. If I download the 38 wheel, and manually install it with
poetry add ./scrapy_rss-0.1.9-py38-none-any.whl
, it will install fine and choose the newest version ofscrapy
, namelyscrapy=2.1.0
. However If I just say:poetry add scrapy-rss
, it will install the 33 wheel, and demand the scrapy versionscrapy=1.4.0
.Why does poetry pick the wrong wheel in this case?
Here's the output of
poetry add
:Btw,
pip
will choose the correct version. In a new virtualenv, runningpip install scrapy-rss
will install the 38 wheel. So this must be a bug on the poetry side.The text was updated successfully, but these errors were encountered: