mirror of
https://github.com/termux/termux-packages
synced 2024-06-19 21:37:06 +00:00
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
diff -uNr pip-22.3.1/src/pip/_internal/commands/install.py pip-22.3.1/src/pip/_internal/commands/install.py.patch
|
|
--- pip-22.3.1/src/pip/_internal/commands/install.py 2022-11-05 18:25:43.000000000 +0300
|
|
+++ pip-22.3.1/src/pip/_internal/commands/install.py.patch 2023-01-11 22:55:38.943540197 +0300
|
|
@@ -346,6 +346,22 @@
|
|
options, reqs, LegacySetupPyOptionsCheckMode.INSTALL
|
|
)
|
|
|
|
+ # This prevents updating pip via pip, which is necessary as it breaks
|
|
+ # the python-pip package in termux.
|
|
+ # https://github.com/termux/termux-packages/pull/13611#issuecomment-1336105506
|
|
+ for req in reqs:
|
|
+ if req.name == "pip":
|
|
+ reqs.remove(req)
|
|
+ if len(reqs) == 0:
|
|
+ raise CommandError(
|
|
+ "Installing pip is forbidden, this will break the python-pip package (termux)."
|
|
+ )
|
|
+ else:
|
|
+ logger.warning(
|
|
+ "Skip installing pip, this will break the python-pip package (termux)."
|
|
+ )
|
|
+ break
|
|
+
|
|
if "no-binary-enable-wheel-cache" in options.features_enabled:
|
|
# TODO: remove format_control from WheelCache when the deprecation cycle
|
|
# is over
|