From: Ross Burton Date: Tue, 29 Jul 2025 08:59:33 +0000 (+0100) Subject: setuptools3: pass -j to build step X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96d13feaa881ae4d275d16f7efca92dbd075241b;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git setuptools3: pass -j to build step Explicitly call the build command, as by doing this we get to pass -j. In packages without any C extensions this is mostly a no-op as bdist_wheel will call it anyway. However, this does make a big difference to build time for packages with non-trivial C extensions: python3-cython:do_compile 204.8s -> 70.9s python3-lxml:do_compile 157.5s -> 92.4s 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 6f3923dcb2..a54da8b7f5 100644 --- a/meta/classes-recipe/setuptools3.bbclass +++ b/meta/classes-recipe/setuptools3.bbclass @@ -38,6 +38,7 @@ setuptools3_do_compile() { export STAGING_LIBDIR=${STAGING_LIBDIR} nativepython3 setup.py --verbose \ + build ${@oe.utils.parallel_make_argument(d, "-j %d")} \ bdist_wheel --dist-dir ${PEP517_WHEEL_PATH} \ ${SETUPTOOLS_BUILD_ARGS} }