python-setuptools: add host-build
authorAlexandru Ardelean <[email protected]>
Fri, 7 Nov 2025 10:23:24 +0000 (12:23 +0200)
committerHannu Nyman <[email protected]>
Sat, 8 Nov 2025 09:21:38 +0000 (11:21 +0200)
Newer Python 3 versions don't ship setuptools anymore.
Packages will need to use this one instead.

Signed-off-by: Alexandru Ardelean <[email protected]>
lang/python/python-setuptools/Makefile

index b4a00633d3b50a854f36e12ba867a76077590920..d3261935c4f099125be76c0c7346b7a151f732fa 100644 (file)
@@ -19,9 +19,18 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <[email protected]>
 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))