File tree 1 file changed +4
-3
lines changed
src/pip/_internal/resolution/resolvelib
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -347,8 +347,8 @@ class ExtrasCandidate(Candidate):
347
347
to treat it as a separate node in the dependency graph.
348
348
2. When we're getting the candidate's dependencies,
349
349
a) We specify that we want the extra dependencies as well.
350
- b) We add a dependency on the base candidate (matching the name and
351
- version). See below for why this is needed.
350
+ b) We add a dependency on the base candidate.
351
+ See below for why this is needed.
352
352
3. We return None for the underlying InstallRequirement, as the base
353
353
candidate will provide it, and we don't want to end up with duplicates.
354
354
@@ -417,7 +417,8 @@ def iter_dependencies(self):
417
417
extra
418
418
)
419
419
420
- # Add a dependency on the exact base.
420
+ # Add a dependency on the exact base
421
+ # (See note 2b in the class docstring)
421
422
yield factory .make_requirement_from_candidate (self .base )
422
423
423
424
for r in self .base .dist .requires (valid_extras ):
You can’t perform that action at this time.
0 commit comments