mirror of https://github.com/pypa/pip
Attempt to install Wheel in get-pip.py
This commit is contained in:
parent
51e94cdba5
commit
cf7d6a21cd
|
@ -154,6 +154,16 @@ def bootstrap(tmpdir=None):
|
|||
except ImportError:
|
||||
packages += ["setuptools"]
|
||||
|
||||
# Check if the user has requested us not to install wheel
|
||||
if "--no-wheel" in args or os.environ.get("PIP_NO_WHEEL"):
|
||||
args = [x for x in args if x != "--no-wheel"]
|
||||
else:
|
||||
# We want to see if wheel is available before attempting to install it.
|
||||
try:
|
||||
import wheel # noqa
|
||||
except ImportError:
|
||||
args += ["wheel"]
|
||||
|
||||
delete_tmpdir = False
|
||||
try:
|
||||
# Create a temporary directory to act as a working directory if we were
|
||||
|
|
Loading…
Reference in New Issue