提交 5a6d0af8 编写于 作者: P Pradyun S. Gedam 提交者: Xavier Fernandez

Use pip.compat.WINDOWS for robustness.

上级 9c037803
......@@ -10,6 +10,7 @@ import warnings
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,
......@@ -318,7 +319,7 @@ class RequirementCommand(Command):
# 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])
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册