From 1f4ea8c95a3e3d6b74276884cfdae51cc8b81857 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Fri, 11 Mar 2022 12:27:26 -0700 Subject: [PATCH] package/pkg-python: apply host platform and project base to pep517 env The _PYTHON_HOST_PLATFORM and _PYTHON_PROJECT_BASE variables should also be set for pep517 builds as they are not setuptools/distutils specific. Signed-off-by: James Hilliard Signed-off-by: Yann E. MORIN --- package/pkg-python.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/pkg-python.mk b/package/pkg-python.mk index f031bc8fae..52ce402281 100644 --- a/package/pkg-python.mk +++ b/package/pkg-python.mk @@ -113,6 +113,8 @@ HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPTS = \ # Target pep517-based packages PKG_PYTHON_PEP517_ENV = \ + _PYTHON_HOST_PLATFORM="$(PKG_PYTHON_HOST_PLATFORM)" \ + _PYTHON_PROJECT_BASE="$(PYTHON3_DIR)" \ _PYTHON_SYSCONFIGDATA_NAME="$(PKG_PYTHON_SYSCONFIGDATA_NAME)" \ PATH=$(BR_PATH) \ $(TARGET_CONFIGURE_OPTS) \