From e3a1f5b0b92689b4b40e9dfed2f8fce4c779f181 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 7 Nov 2025 12:23:24 +0200 Subject: [PATCH] python-setuptools: add host-build Newer Python 3 versions don't ship setuptools anymore. Packages will need to use this one instead. Signed-off-by: Alexandru Ardelean --- lang/python/python-setuptools/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lang/python/python-setuptools/Makefile b/lang/python/python-setuptools/Makefile index b4a00633d3..d3261935c4 100644 --- a/lang/python/python-setuptools/Makefile +++ b/lang/python/python-setuptools/Makefile @@ -19,9 +19,18 @@ PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Jeffery To CPE_ID:=cpe:/a:python:setuptools +HOST_BUILD_DEPENDS:= \ + python3/host \ + python-build/host \ + python-installer/host \ + python-wheel/host \ + python-packaging/host + include ../pypi.mk include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk include ../python3-package.mk +include ../python3-host-build.mk define Package/python3-setuptools/Default SECTION:=lang @@ -80,3 +89,5 @@ $(eval $(call BuildPackage,python3-setuptools)) $(eval $(call BuildPackage,python3-pkg-resources-src)) $(eval $(call BuildPackage,python3-setuptools-src)) + +$(eval $(call HostBuild))