Skip to content

Commit 3e47811

Browse files
# This is a combination of 23 commits.
parent af71f3c author Damian <[email protected]> 1633755088 -0400 committer Damian <[email protected]> 1633755088 -0400 parent 02b4f86 author Damian <[email protected]> 1633754869 -0400 committer Damian <[email protected]> 1633754928 -0400 parent 02b4f86 author Damian <[email protected]> 1633754869 -0400 committer Damian <[email protected]> 1633754892 -0400 Return a better error message if a `file:` URL is not found (#10263) Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Pradyun Gedam <[email protected]> Prefer failure causes when backtracking This fix is in the wrong PR confusing matters Change name to backtrack_causes Create is_backtrack_cause function Fix newlines Typo Fix in Comment Fix lint errors Add News Item Newline Better news. Fix known depths Fix known depths Fix known depths This fix is in the wrong PR confusing matters Change name to backtrack_causes Create is_backtrack_cause function Fix newlines Typo Fix in Comment Fix lint errors # This is the commit message #22: Better news. # This is the commit message #23: Update news/10479.feature.rst Co-authored-by: Pradyun Gedam <[email protected]>
1 parent af71f3c commit 3e47811

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

news/10479.feature.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
New resolver: When backtracking prefer the dependencies which caused the most recent backtracking. In some cases this will significantly reduce the amount of backtracking required.
1+
When backtracking during dependency resolution, prefer the dependencies which are involved in the most recent conflict. This can significantly reduce the amount of backtracking required.

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ def get_dependencies(self, candidate: Candidate) -> Sequence[Requirement]:
205205

206206
@staticmethod
207207
def is_backtrack_cause(
208-
identifier: str,
209-
backtrack_causes: Sequence["RequirementInformation"]
208+
identifier: str, backtrack_causes: Sequence["RequirementInformation"]
210209
) -> bool:
211210
for backtrack_cause in backtrack_causes:
212211
if identifier == backtrack_cause.requirement.name:

0 commit comments

Comments
 (0)