From 96d13feaa881ae4d275d16f7efca92dbd075241b Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 29 Jul 2025 09:59:33 +0100 Subject: [PATCH] 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 --- meta/classes-recipe/setuptools3.bbclass | 1 + 1 file changed, 1 insertion(+) 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} } -- 2.47.2