Skip to content

Commit

Permalink
Improve message when setuptools is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jan 23, 2018
1 parent 4f85419 commit 9fdcc27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pip/_internal/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,10 @@ def _build_one(self, req, output_dir, python_tag=None):
build_reqs, isolate = self._find_build_reqs(req)
if 'setuptools' not in build_reqs:
logger.warning(
"This version of pip does not implement PEP 516, so "
"it cannot build a wheel without setuptools. You may need to "
"upgrade to a newer version of pip.")
"This version of pip does not implement PEP 517, so "
"it cannot build a wheel without setuptools. You need to "
"upgrade to a newer version of pip that implements PEP 517."
)
# Install build deps into temporary directory (PEP 518)
with BuildEnvironment(self.no_clean) as prefix:
self._install_build_reqs(build_reqs, prefix)
Expand Down

0 comments on commit 9fdcc27

Please sign in to comment.