Skip to content

Commit

Permalink
Merge pull request #2800 from dstufft/install-wheel-get-pip
Browse files Browse the repository at this point in the history
Attempt to install Wheel in get-pip.py
  • Loading branch information
dstufft committed May 22, 2015
2 parents 51e94cd + cf7d6a2 commit 9b72585
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ def parse_args(self, args):
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
Expand Down

0 comments on commit 9b72585

Please sign in to comment.