From: Ross Burton Date: Tue, 29 Jul 2025 08:59:32 +0000 (+0100) Subject: setuptools3: tidy up do_compile X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d508ee5c7bb03da5ae37bd098fa4ef8a5128e398;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git setuptools3: tidy up do_compile This function was untidy and has pointless logging, rewrite. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/setuptools3.bbclass b/meta/classes-recipe/setuptools3.bbclass index c2f4b0287c..6f3923dcb2 100644 --- a/meta/classes-recipe/setuptools3.bbclass +++ b/meta/classes-recipe/setuptools3.bbclass @@ -33,11 +33,13 @@ setuptools3_do_configure() { setuptools3_do_compile() { cd ${SETUPTOOLS_SETUP_PATH} - STAGING_INCDIR=${STAGING_INCDIR} \ - STAGING_LIBDIR=${STAGING_LIBDIR} \ - ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py \ - bdist_wheel --verbose --dist-dir ${PEP517_WHEEL_PATH} ${SETUPTOOLS_BUILD_ARGS} || \ - bbfatal_log "'python3 setup.py bdist_wheel ${SETUPTOOLS_BUILD_ARGS}' execution failed." + + export STAGING_INCDIR=${STAGING_INCDIR} + export STAGING_LIBDIR=${STAGING_LIBDIR} + + nativepython3 setup.py --verbose \ + bdist_wheel --dist-dir ${PEP517_WHEEL_PATH} \ + ${SETUPTOOLS_BUILD_ARGS} } setuptools3_do_compile[vardepsexclude] = "MACHINE" do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"