Skip to content

Commit 3870586

Browse files
committed
Check self.ignore_installed before doing requirement.check_if_exists
1 parent 41dbd97 commit 3870586

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pip/req/req_set.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ def install(self, install_options, global_options=(), *args, **kwargs):
625625
# distribute wasn't installed, so nothing to do
626626
pass
627627

628-
requirement.check_if_exists()
628+
if not self.ignore_installed:
629+
requirement.check_if_exists()
629630

630631
if requirement.conflicts_with:
631632
logger.notify('Found existing installation: %s'

0 commit comments

Comments
 (0)