package/python-setuptools: migrate to pep517 build backend

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@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
master
James Hilliard 2023-06-24 16:27:05 -06:00 committed by Arnout Vandecappelle
parent e0ae89957e
commit 15886f2761
2 changed files with 3 additions and 2 deletions

View File

@ -233,7 +233,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)

View File

@ -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))