Skip to content

Commit 9697688

Browse files
committed
Disable self version check in PEP 517 pip subprocesses
This eliminates a (very) small unnecessary performance penalty and reduces output clutter when the pip subprocess errors out.
1 parent a7369ba commit 9697688

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

news/12683.feature.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Disable pip's self version check when invoking a pip subprocess to install
2+
PEP 517 build requirements.

src/pip/_internal/build_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ def _install_requirements(
241241
"--prefix",
242242
prefix.path,
243243
"--no-warn-script-location",
244+
"--disable-pip-version-check",
244245
]
245246
if logger.getEffectiveLevel() <= logging.DEBUG:
246247
args.append("-vv")

0 commit comments

Comments
 (0)