Skip to content

Commit

Permalink
Use pip.compat.WINDOWS for robustness.
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg authored and xavfernandez committed May 22, 2017
1 parent 9c03780 commit 5a6d0af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pip/basecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from pip import cmdoptions
from pip.baseparser import ConfigOptionParser, UpdatingDefaultsHelpFormatter
from pip.compat import WINDOWS
from pip.download import PipSession
from pip.exceptions import (
BadCommand, CommandError, InstallationError, PreviousBuildDirError,
Expand Down Expand Up @@ -318,7 +319,7 @@ def populate_requirement_set(requirement_set, args, options, finder,
# python -m pip ...
# See https://github.com/pypa/pip/issues/1299 for more discussion
should_show_use_python_msg = (
sys.platform == 'win32' and
WINDOWS and
requirement_set.has_requirement('pip') and
"pip" in os.path.basename(sys.argv[0])
)
Expand Down

0 comments on commit 5a6d0af

Please sign in to comment.