From 42c62a08f7cf5d7debfd84d4358ccf5a0ae8f583 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 17 Jul 2020 04:01:46 +0530 Subject: [PATCH] Short circuit when there's nothing to report --- src/pip/_internal/commands/install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pip/_internal/commands/install.py b/src/pip/_internal/commands/install.py index bf3d07bde..9edababe4 100644 --- a/src/pip/_internal/commands/install.py +++ b/src/pip/_internal/commands/install.py @@ -539,6 +539,9 @@ class InstallCommand(RequirementCommand): def _warn_about_conflicts(self, conflict_details): # type: (ConflictDetails) -> None package_set, (missing, conflicting) = conflict_details + if not missing and not conflicting: + return + parts = [] # type: List[str] # NOTE: There is some duplication here, with commands/check.py