python-pip: update to 26.0.1
authorAlexandru Ardelean <redacted>
Wed, 8 Apr 2026 06:48:02 +0000 (09:48 +0300)
committerAlexandru Ardelean <redacted>
Thu, 9 Apr 2026 05:00:32 +0000 (08:00 +0300)
Refresh all patches for pip 26.0.1:
- 001 (pyproject-hooks-pyc-fix): vendored pyproject_hooks switched
  from single to double quotes and multiline block format; restructure
  to minimal diff (keep unchanged context lines as context)
- 002 (pip-runner-pyc-fix): get_runnable_pip() shifted ~20 lines;
  Set[str] -> set[str] in trailing context; refresh offsets
- 003 (disable-pip-version-check): option definition moved ~174 lines;
  refresh line number

pip 26 also dropped the version-specific binary (e.g. pip3.14).
Update the install rule to use pip3 as the primary binary and
symlink pip/pip$(VERSION) to it.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pip/Makefile
lang/python/python-pip/patches/001-pyproject-hooks-pyc-fix.patch
lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch
lang/python/python-pip/patches/003-disable-pip-version-check.patch

index fff0f7018e37e5d4556e1183bdd15a1570ad4478..658f6ea83fad487d605e57e000ed899e1fb95fc2 100644 (file)
@@ -8,17 +8,19 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pip
-PKG_VERSION:=23.3.1
+PKG_VERSION:=26.0.1
 PKG_RELEASE:=1
 
 PYPI_NAME:=pip
-PKG_HASH:=1fcaa041308d01f14575f6d0d2ea4b75a3e2871fe4f9c694976f908768e14174
+PKG_HASH:=c4037d8a277c89b320abe636d59f91e6d0922d08a05b60e85e53b296613346d8
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_CPE_ID:=cpe:/a:pypa:pip
 
+PKG_BUILD_DEPENDS:=python-setuptools/host
+
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
@@ -43,9 +45,8 @@ endef
 
 define Py3Package/python3-pip/install
        $(INSTALL_DIR) $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pip$(PYTHON3_VERSION) $(1)/usr/bin/
-       $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3
-       $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pip3 $(1)/usr/bin/
+       $(LN) pip3 $(1)/usr/bin/pip
 
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/pip.conf $(1)/etc/
index e9eafab969dacb399efe4d6c7d096cf13c0b49de..b32733134ccc20f4ace8e2a5ad08952d6d19e1d4 100644 (file)
@@ -1,19 +1,22 @@
 --- a/src/pip/_vendor/pyproject_hooks/_in_process/__init__.py
 +++ b/src/pip/_vendor/pyproject_hooks/_in_process/__init__.py
-@@ -11,8 +11,14 @@ try:
+@@ -11,11 +11,17 @@ try:
  except AttributeError:
      # Python 3.8 compatibility
      def _in_proc_script_path():
--        return resources.path(__package__, '_in_process.py')
-+        filename = '_in_process.pyc'
-+        if resources.is_resource(__package__, '_in_process.py'):
-+            filename = '_in_process.py'
+-        return resources.path(__package__, "_in_process.py")
++        filename = "_in_process.pyc"
++        if resources.is_resource(__package__, "_in_process.py"):
++            filename = "_in_process.py"
 +        return resources.path(__package__, filename)
  else:
      def _in_proc_script_path():
-+        filename = '_in_process.pyc'
-+        if resources.files(__package__).joinpath('_in_process.py').is_file():
-+            filename = '_in_process.py'
++        filename = "_in_process.pyc"
++        if resources.files(__package__).joinpath("_in_process.py").is_file():
++            filename = "_in_process.py"
          return resources.as_file(
--            resources.files(__package__).joinpath('_in_process.py'))
-+            resources.files(__package__).joinpath(filename))
+-            resources.files(__package__).joinpath("_in_process.py")
++            resources.files(__package__).joinpath(filename)
+         )
index 8f68049a8b284f4e52bf0b3f00d08ce9a19b16ec..c7d80688893d79d18f8ccedf3103d49db2f41c53 100644 (file)
@@ -1,6 +1,6 @@
 --- a/src/pip/_internal/build_env.py
 +++ b/src/pip/_internal/build_env.py
-@@ -54,7 +54,11 @@ def get_runnable_pip() -> str:
+@@ -74,7 +74,11 @@ def get_runnable_pip() -> str:
          # case, we can use that directly.
          return str(source)
  
@@ -12,4 +12,4 @@
 +    return os.fsdecode(source / filename)
  
  
- def _get_system_sitepackages() -> Set[str]:
+ def _get_system_sitepackages() -> set[str]:
index 99a0258aa6088434b6b6ddabd60e44bbf795d364..f08530edad91eaeab75572c5a4d57665e47d4d36 100644 (file)
@@ -9,7 +9,7 @@ Patch-Name: disable-pip-version-check.patch
 
 --- a/src/pip/_internal/cli/cmdoptions.py
 +++ b/src/pip/_internal/cli/cmdoptions.py
-@@ -895,7 +895,7 @@ disable_pip_version_check: Callable[...,
+@@ -1069,7 +1069,7 @@ disable_pip_version_check: Callable[...,
      "--disable-pip-version-check",
      dest="disable_pip_version_check",
      action="store_true",
git clone https://git.99rst.org/PROJECT