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 <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-08 14:39:20 +03:00
committed by Alexandru Ardelean
parent 5a043e08d4
commit 7cd71426e3
+3 -1
View File
@@ -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 <jeffery.to@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