Skip to content

Respect python-requires in offline mode (--find-link --no-index) #7610

@gaborbernat

Description

@gaborbernat

One way (and before the rewrite release the only way) to bootstrap a virtual environment in an offline environment is to point pip to some bundled wheels via the --find-links parameter. The problem is that if this folder contains both wheels that support the target environment and wheels that don't (e.g. with setuptools 45 dropping python 2), pip does not pick the last supported version of a package, but instead picks the highest version, and then fails at install time.

Triggered by pypa/virtualenv#1496.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions