Directly require BaseCandidate in ExtrasCandidate

This commit is contained in:
Pradyun Gedam 2020-05-21 20:37:59 +05:30
parent 775f9ff6ca
commit 95347df102
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
1 changed files with 1 additions and 5 deletions

View File

@ -425,11 +425,7 @@ class ExtrasCandidate(Candidate):
yield requirement
# Add a dependency on the exact base.
# (See note 2b in the class docstring)
# FIXME: This does not work if the base candidate is specified by
# link, e.g. "pip install .[dev]" will fail.
spec = "{}=={}".format(self.base.name, self.base.version)
yield factory.make_requirement_from_spec(spec, self.base._ireq)
yield factory.make_requirement_from_candidate(self.base)
def get_install_requirement(self):
# type: () -> Optional[InstallRequirement]