Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions news/9420.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include all resolution conflict fix info on stderr.
7 changes: 3 additions & 4 deletions src/pip/_internal/resolution/resolvelib/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,8 @@ def describe_trigger(parent):
info = "the requested packages"

msg = "Cannot install {} because these package versions " \
"have conflicting dependencies.".format(info)
logger.critical(msg)
msg = "\nThe conflict is caused by:"
"have conflicting dependencies.\n".format(info)
msg = msg + "\nThe conflict is caused by:"
for req, parent in e.causes:
msg = msg + "\n "
if parent:
Expand All @@ -489,7 +488,7 @@ def describe_trigger(parent):
"2. remove package versions to allow pip attempt to solve " + \
"the dependency conflict\n"

logger.info(msg)
logger.critical(msg)

return DistributionNotFound(
"ResolutionImpossible: for help visit "
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/test_install_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,10 @@ def test_install_distribution_union_with_versions(
assert "Cannot install localextras[bar]" in result.stderr
assert (
"localextras[bar] 0.0.1 depends on localextras 0.0.1"
) in result.stdout
) in result.stderr
assert (
"localextras[baz] 0.0.2 depends on localextras 0.0.2"
) in result.stdout
) in result.stderr
else:
assert (
"Successfully installed LocalExtras-0.0.1 simple-3.0 "
Expand Down