Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to the appropriate documentation in pip backtracking output #10516

Merged
merged 3 commits into from
Oct 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/pip/_internal/resolution/resolvelib/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class PipReporter(BaseReporter):
def __init__(self) -> None:
self.backtracks_by_package: DefaultDict[str, int] = defaultdict(int)

reduce_backtracking_url = "https://pip.pypa.io/en/latest/topics/dependency-resolution/#possible-ways-to-reduce-backtracking" # noqa: E501
uranusjr marked this conversation as resolved.
Show resolved Hide resolved
self._messages_at_backtrack = {
1: (
"pip is looking at multiple versions of {package_name} to "
Expand All @@ -27,8 +28,8 @@ def __init__(self) -> None:
13: (
"This is taking longer than usual. You might need to provide "
"the dependency resolver with stricter constraints to reduce "
"runtime. If you want to abort this run, you can press "
"Ctrl + C to do so."
f"runtime. See {reduce_backtracking_url} for tips and/or "
"press Ctrl + C to abort this run."
),
}

Expand Down