Skip to content

Commit 1bf71d4

Browse files
committed
ExtrasCandidate depends on exact base, before optional dependencies
1 parent 509fd80 commit 1bf71d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -417,16 +417,16 @@ def iter_dependencies(self):
417417
extra
418418
)
419419

420+
# Add a dependency on the exact base.
421+
yield factory.make_requirement_from_candidate(self.base)
422+
420423
for r in self.base.dist.requires(valid_extras):
421424
requirement = factory.make_requirement_from_spec_matching_extras(
422425
str(r), self.base._ireq, valid_extras,
423426
)
424427
if requirement:
425428
yield requirement
426429

427-
# Add a dependency on the exact base.
428-
yield factory.make_requirement_from_candidate(self.base)
429-
430430
def get_install_requirement(self):
431431
# type: () -> Optional[InstallRequirement]
432432
# We don't return anything here, because we always

0 commit comments

Comments
 (0)