mirror of https://github.com/pypa/pip
Merge pull request #9100 from uranusjr/new-resolver-deterministic-ordering
Tie-break requirements with package name
This commit is contained in:
commit
ee7c56e031
|
@ -0,0 +1 @@
|
|||
The new resolver now resolves packages in a deterministic order.
|
|
@ -57,7 +57,8 @@ class PipProvider(AbstractProvider):
|
|||
):
|
||||
# type: (...) -> Any
|
||||
transitive = all(parent is not None for _, parent in information)
|
||||
return (transitive, bool(candidates))
|
||||
key = next(iter(candidates)).name if candidates else ""
|
||||
return (transitive, key)
|
||||
|
||||
def find_matches(self, requirements):
|
||||
# type: (Sequence[Requirement]) -> Iterable[Candidate]
|
||||
|
|
Loading…
Reference in New Issue