pip: Pip install `--dry-run` shouldn't download full wheels when metadata file available
Description
When running pip install --dry-run {package} pip downloads the metadata file and then the full wheel
Expected behavior
Dry run installs don’t need to download the full wheels
pip version
24.0
Python version
3.11
OS
Linux
How to Reproduce
pip install --dry-run kaleido==0.2.1
Output
$ pip install --dry-run kaleido==0.2.1
Collecting kaleido==0.2.1
Downloading kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl.metadata (15 kB)
Downloading kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl (79.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.9/79.9 MB 34.6 MB/s eta 0:00:00
Would install kaleido-0.2.1
Code of Conduct
- I agree to follow the PSF Code of Conduct.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 4
- Comments: 18 (13 by maintainers)
Commits related to this issue
- Avoid `pip install --dry-run` downloading full wheels * Removed "more preparation" (downloading) from the resolver to prevent downloading before dry-run validation * Added distribution caching to `... — committed to pelson/pip by pelson a year ago
- Avoid `pip install --dry-run` downloading full wheels * Removed "more preparation" (downloading) from the resolver to prevent downloading before dry-run validation * Added distribution caching to `... — committed to pelson/pip by pelson a year ago
Done.
Also there was some recent progress in https://github.com/pypa/pip/pull/12863
Personally, I’d quite like the work done by @cosmicexplorer to land.
fwiw, for the time being, I’ve been happily running https://github.com/pypa/pip/pull/12186 on my machine: