summaryrefslogtreecommitdiff
path: root/src/pip/_internal/req/req_install.py
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-10 14:46:12 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-14 08:03:49 +0200
commitbd746e3136e5e1be2374a079bac66071dd967a8c (patch)
tree899f6b1ca027daae876c3379f98985a26546559c /src/pip/_internal/req/req_install.py
parentcaafe6e87d4f2998a77b194297e1c204cf6e10c2 (diff)
downloadpip-bd746e3136e5e1be2374a079bac66071dd967a8c.tar.gz
Introduce ireq.cached_wheel_source_link
Diffstat (limited to 'src/pip/_internal/req/req_install.py')
-rw-r--r--src/pip/_internal/req/req_install.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py
index a8f94d4e0..50d89b1be 100644
--- a/src/pip/_internal/req/req_install.py
+++ b/src/pip/_internal/req/req_install.py
@@ -112,6 +112,9 @@ class InstallRequirement:
# When is_wheel_from_cache is True, it means that this InstallRequirement
# is a local wheel file in the cache of locally built wheels.
self.is_wheel_from_cache = False
+ # When is_wheel_from_cache is True, this is the source link corresponding
+ # to the cache entry, which was used to download and build the cached wheel.
+ self.cached_wheel_source_link: Optional[Link] = None
# Information about the location of the artifact that was downloaded . This
# property is guaranteed to be set in resolver results.