Skip to content

pip install -U shouldn't go to pypi if the requirement is already installed #770

Closed
@mbox

Description

@mbox

Setup a virtualenv with all requirements in pip-reqs.txt installed (requirements that all have a specific version specified)

Running pip install -U and pip install should both be No-ops as nothing needs to be installed.

However the -U version runs about 1000x slower than the straight install:

 pip install -U -r pip-reqs.txt

 real   3m5.072s
 user   0m3.340s
 sys    0m0.970s

 pip install -r ../pip-reqs.txt

 real   0m0.246s
 user   0m0.160s
 sys    0m0.080s

Both runs end up not installing anything - although the -U version does hit two git repos (but it's every single check that's slower, so time isn't accounted for by these pulls)

Environment:

pip 1.2.1 running on Linux

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