Skip to content

Commit 5175931

Browse files
committed
Correctly rebuild child req in extras candidate
1 parent 4d2a70e commit 5175931

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pip/_internal/resolution/resolvelib/candidates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ def get_dependencies(self):
405405
]
406406
# Add a dependency on the exact base.
407407
# (See note 2b in the class docstring)
408-
spec = "{}=={}".format(self.base.name, self.base.version)
409-
deps.append(factory.make_requirement_from_spec(spec, self.base._ireq))
408+
deps.append(factory.make_requirement_from_install_req(self.base._ireq))
410409
return deps
411410

412411
def get_install_requirement(self):

0 commit comments

Comments
 (0)