From: Ross Burton Date: Fri, 1 Aug 2025 14:27:10 +0000 (+0100) Subject: classes/python_pep517: use pyproject-build instead of nativepython3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e064e71b4003666de1644f8e3c08ed6844d710e5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/python_pep517: use pyproject-build instead of nativepython3 The build package installs an entry point now, so we run that instead of calling the module directly. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- 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}"