From 3b2913552ee4e304d4d86e577b237652a8f0a99f Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Mon, 26 Jun 2023 22:29:01 +0200 Subject: [PATCH] package/python-setuptools: add missing dependency on host-python-wheel While migrating to pep517 build backend the host-python-wheel dependency has been added to host-python-setuptools but not to python-setuptools. Note that host-python-wheel is not really needed during the build of (target) setuptools, but the setup.py script checks if the dependency is present in the host directory. To make everything consistent, add host-python-wheel as a build dependency, and BR2_PACKAGE_PYTHON_WHEEL as a runtime dependency. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/4537951715 Signed-off-by: Romain Naour Cc: James Hilliard [Arnout: also add runtime dependency on the target package.] Signed-off-by: Arnout Vandecappelle --- package/python-setuptools/Config.in | 3 ++- package/python-setuptools/python-setuptools.mk | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/python-setuptools/Config.in b/package/python-setuptools/Config.in index 28228534f8..73368c1a49 100644 --- a/package/python-setuptools/Config.in +++ b/package/python-setuptools/Config.in @@ -1,7 +1,8 @@ config BR2_PACKAGE_PYTHON_SETUPTOOLS bool "python-setuptools" - select BR2_PACKAGE_PYTHON3_ZLIB # runtime select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime + select BR2_PACKAGE_PYTHON3_ZLIB # runtime + select BR2_PACKAGE_PYTHON_WHEEL # runtime help Download, build, install, upgrade, and uninstall Python packages. diff --git a/package/python-setuptools/python-setuptools.mk b/package/python-setuptools/python-setuptools.mk index d957930455..39ead10f55 100644 --- a/package/python-setuptools/python-setuptools.mk +++ b/package/python-setuptools/python-setuptools.mk @@ -12,6 +12,7 @@ PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python PYTHON_SETUPTOOLS_CPE_ID_PRODUCT = setuptools PYTHON_SETUPTOOLS_SETUP_TYPE = pep517 +PYTHON_SETUPTOOLS_DEPENDENCIES = host-python-wheel HOST_PYTHON_SETUPTOOLS_DEPENDENCIES = host-python-wheel $(eval $(python-package))