Skip to content

Commit fe56826

Browse files
committed
Quote 'setup.py install' when calling it legacy
We want to make it clear that it is the setup.py install command we consider legacy, not setup.py itself.
1 parent 462d6ca commit fe56826

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pip/_internal/commands/install.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ def run(self, options, args):
376376
deprecated(
377377
reason=(
378378
"Could not build wheels for {} which do not use "
379-
"PEP 517. pip will fall back to legacy setup.py "
380-
"install for these.".format(
379+
"PEP 517. pip will fall back to legacy 'setup.py "
380+
"install' for these.".format(
381381
", ".join(r.name for r in legacy_build_failures)
382382
)
383383
),

src/pip/_internal/wheel_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _should_build(
8080
if not req.use_pep517 and not is_wheel_installed():
8181
# we don't build legacy requirements if wheel is not installed
8282
logger.info(
83-
"Using legacy setup.py install for %s, "
83+
"Using legacy 'setup.py install' for %s, "
8484
"since package 'wheel' is not installed.", req.name,
8585
)
8686
return False

0 commit comments

Comments
 (0)