[Buildroot] [PATCH v2 2/2] package/python-setuptools: migrate to pep517 build backend

James Hilliard james.hilliard1 at gmail.com
Sat Jun 24 22:27:05 UTC 2023


Now that all dependencies of host-python-setuptools no longer
use setuptools as a build backend we can now migrate setuptools
itself to the pep517 build backend.

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
 package/pkg-python.mk                          | 2 +-
 package/python-setuptools/python-setuptools.mk | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index c15a168f60..78e4410022 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -237,7 +237,7 @@ endif # ($(4),target)
 # interpreter (both host and target).
 #
 ifeq ($$($(2)_SETUP_TYPE),setuptools)
-$(2)_DEPENDENCIES += $$(if $$(filter host-python-setuptools,$(1)),,host-python-setuptools)
+$(2)_DEPENDENCIES += host-python-setuptools
 else ifneq ($$(filter flit pep517,$$($(2)_SETUP_TYPE)),)
 $(2)_DEPENDENCIES += host-python-pypa-build host-python-installer
 ifeq ($$($(2)_SETUP_TYPE),flit)
diff --git a/package/python-setuptools/python-setuptools.mk b/package/python-setuptools/python-setuptools.mk
index 2674947162..d957930455 100644
--- a/package/python-setuptools/python-setuptools.mk
+++ b/package/python-setuptools/python-setuptools.mk
@@ -11,7 +11,8 @@ PYTHON_SETUPTOOLS_LICENSE = MIT
 PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE
 PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python
 PYTHON_SETUPTOOLS_CPE_ID_PRODUCT = setuptools
-PYTHON_SETUPTOOLS_SETUP_TYPE = setuptools
+PYTHON_SETUPTOOLS_SETUP_TYPE = pep517
+HOST_PYTHON_SETUPTOOLS_DEPENDENCIES = host-python-wheel
 
 $(eval $(python-package))
 $(eval $(host-python-package))
-- 
2.34.1




More information about the buildroot mailing list