Skip to content

Commit 32a2956

Browse files
authored
Merge pull request #9627 from jameshfisher/patch-1
Point user to `pip debug --verbose` to debug incompatible wheel
2 parents 8365bc3 + 3bd019b commit 32a2956

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/pip/_internal/index/package_finder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ def evaluate_link(self, link):
194194
# simplify troubleshooting compatibility issues.
195195
file_tags = wheel.get_formatted_file_tags()
196196
reason = (
197-
"none of the wheel's tags match: {}".format(
197+
"none of the wheel's tags ({}) are compatible "
198+
"(run pip debug --verbose to show compatible tags)".format(
198199
', '.join(file_tags)
199200
)
200201
)

tests/unit/test_index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def test_evaluate_link__incompatible_wheel(self):
170170
link = Link('https://example.com/sample-1.0-py2.py3-none-any.whl')
171171
actual = evaluator.evaluate_link(link)
172172
expected = (
173-
False, "none of the wheel's tags match: py2-none-any, py3-none-any"
173+
False,
174+
"none of the wheel's tags (py2-none-any, py3-none-any) are compatible "
175+
"(run pip debug --verbose to show compatible tags)"
174176
)
175177
assert actual == expected
176178

0 commit comments

Comments
 (0)