packages/lang/python/python-pip/patches/003-disable-pip-version-check.patch
Jeffery To 548fdba3fd
python-pip: Update to 23.3.1, redo/refresh patches
001-pyproject-hooks-pyc-fix.patch and 002-pip-runner-pyc-fix.patch are
redone to use source files if they are present.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-26 20:16:42 +08:00

20 lines
708 B
Diff

From: Barry Warsaw <barry@python.org>
Date: Fri, 18 Nov 2016 17:07:47 -0500
Subject: Set --disable-pip-version-check=True by default.
Patch-Name: disable-pip-version-check.patch
---
src/pip/_internal/cli/cmdoptions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/pip/_internal/cli/cmdoptions.py
+++ b/src/pip/_internal/cli/cmdoptions.py
@@ -895,7 +895,7 @@ disable_pip_version_check: Callable[...,
"--disable-pip-version-check",
dest="disable_pip_version_check",
action="store_true",
- default=False,
+ default=True,
help="Don't periodically check PyPI to determine whether a new version "
"of pip is available for download. Implied with --no-index.",
)