1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Merge pull request #2800 from dstufft/install-wheel-get-pip

Attempt to install Wheel in get-pip.py
This commit is contained in:
Donald Stufft 2015-05-21 22:39:39 -04:00
commit 9b72585627

View file

@ -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