From 7cd71426e3672f1ed41b995245bbe165298f4035 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 8 Apr 2026 14:39:20 +0300 Subject: [PATCH] python-pip: fix build; add setuptools/host as dep This looks like it can occasionally fail with: ``` --outdir "/workdir/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/pip-23.3.1/"/openwrt-build --wheel "/workdir/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/pip-23.3.1/" Getting build dependencies for wheel... ERROR Backend 'setuptools.build_meta' is not available. Traceback (most recent call last): File "/workdir/openwrt/staging_dir/hostpkg/lib/python3.14/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook raise BackendUnavailable( ...<4 lines>... ) pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta' ``` Fixes https://github.com/openwrt/packages/issues/29077 Signed-off-by: Alexandru Ardelean --- lang/python/python-pip/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/python/python-pip/Makefile b/lang/python/python-pip/Makefile index 7d50f3f7cf..99e05c0094 100644 --- a/lang/python/python-pip/Makefile +++ b/lang/python/python-pip/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-pip PKG_VERSION:=23.3.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PYPI_NAME:=pip PKG_HASH:=1fcaa041308d01f14575f6d0d2ea4b75a3e2871fe4f9c694976f908768e14174 @@ -19,6 +19,8 @@ PKG_LICENSE_FILES:=LICENSE.txt PKG_MAINTAINER:=Jeffery To 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