diff mbox series

[2/3] classes/python_pep517: use pyproject-build instead of nativepython3

Message ID 20250801142711.3276119-2-ross.burton@arm.com
State New
Headers show
Series [1/3] Revert "python_setuptools_build_meta: clean the build directory in configure" | expand

Commit Message

Ross Burton Aug. 1, 2025, 2:27 p.m. UTC
The build package installs an entry point now, so we run that instead of
calling the module directly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes-recipe/python_pep517.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/python_pep517.bbclass b/meta/classes-recipe/python_pep517.bbclass
index 4935b2cbe92..128c943794a 100644
--- a/meta/classes-recipe/python_pep517.bbclass
+++ b/meta/classes-recipe/python_pep517.bbclass
@@ -39,7 +39,7 @@  python_pep517_do_configure () {
 # When we have Python 3.11 we can parse pyproject.toml to determine the build
 # API entry point directly
 python_pep517_do_compile () {
-    nativepython3 -m build --no-isolation --wheel --outdir ${PEP517_WHEEL_PATH} ${PEP517_SOURCE_PATH} ${PEP517_BUILD_OPTS}
+    pyproject-build --no-isolation --wheel --outdir ${PEP517_WHEEL_PATH} ${PEP517_SOURCE_PATH} ${PEP517_BUILD_OPTS}
 }
 do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"