summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-11 22:24:12 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-11 22:24:12 +0200
commit5bfccfd62d6fab1600a655e1f9932335740bf593 (patch)
tree44711a414a67225df4b8712a86fb9c8709a7d330 /src
parent2f271838e7fb32930a7b21a35b9bbdc87a103f34 (diff)
downloadpip-5bfccfd62d6fab1600a655e1f9932335740bf593.tar.gz
Report requested_extras for editable requirements
Diffstat (limited to 'src')
-rw-r--r--src/pip/_internal/resolution/resolvelib/candidates.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pip/_internal/resolution/resolvelib/candidates.py b/src/pip/_internal/resolution/resolvelib/candidates.py
index b1ff28288..39af0d5db 100644
--- a/src/pip/_internal/resolution/resolvelib/candidates.py
+++ b/src/pip/_internal/resolution/resolvelib/candidates.py
@@ -79,7 +79,7 @@ def make_install_req_from_editable(
link: Link, template: InstallRequirement
) -> InstallRequirement:
assert template.editable, "template not editable"
- return install_req_from_editable(
+ ireq = install_req_from_editable(
link.url,
user_supplied=template.user_supplied,
comes_from=template.comes_from,
@@ -91,6 +91,8 @@ def make_install_req_from_editable(
hash_options=template.hash_options,
config_settings=template.config_settings,
)
+ ireq.extras = template.extras
+ return ireq
def _make_install_req_from_dist(