Skip to content

pip-10.0.0 misinterprets version restrictions in pyproject.toml #5298

@TimoRoth

Description

@TimoRoth
  • Pip version: 10.0.0
  • Python version: 3.6.4
  • Operating system: Linux x86_64

Description:

Building a wheel for pandas results in:

Could not find a version that satisfies the requirement numpy==1.9.3 (from versions: 1.11.3, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2)
No matching distribution found for numpy==1.9.3

What I've run:

virtualenv work_venv
MYPIP="$PWD/work_venv/bin/pip"
#$MYPIP install "pip<10"
$MYPIP wheel --no-binary :all: -w wheel_out pandas

Commenting in the install "pip<10" fixes the issue. So this is a regression from pip-10.0.0.

Looking at the pandas repository, the numpy==1.9.3 is coming from https://github.com/pandas-dev/pandas/blob/v0.22.0/pyproject.toml
There is a version restriction to python-3.5 though, which pip seems to ignore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions