-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Depending on the command, the file may already exist:
pip install
- wheel cache or HTTP cachepip wheel
- wheel download folder, wheel cache, or HTTP cachepip download
- download folder, wheel cache, or HTTP cache
In all three cases, I think the wheel cache piece may be handled earlier during resolving, so we wouldn't inadvertently use a lazy wheel for it.
In all three cases, it may be the case that the file we want is already in the HTTP cache. I don't know if range requests bypass the HTTP cache or it does what we want (which would be to return the requested bytes from the file on disk). Maybe it is worth it to see if the request is cached first, and just skip the lazy wheel?
In pip wheel
and pip download
, the user may have already downloaded some of the files, and we would want to be able to use those rather than lazily downloading the metadata. Note that the logic refactored in #8685 does not account for this.
Originally posted by @chrahunt in #8697 (comment)