diff options
author | Ross Burton <ross.burton@arm.com> | 2025-07-29 09:59:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-31 10:48:35 +0100 |
commit | 409d49c670c04dfa5a45f652502b85954a802a60 (patch) | |
tree | a2cf23c4970c8c17386421d6ad9f4703b1f5bbe8 | |
parent | 20c2eb15db423fad8d46f45e77eea71ec12a81c8 (diff) | |
download | poky-409d49c670c04dfa5a45f652502b85954a802a60.tar.gz |
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
(From OE-Core rev: 96d13feaa881ae4d275d16f7efca92dbd075241b)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/setuptools3.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
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() { | |||
38 | export STAGING_LIBDIR=${STAGING_LIBDIR} | 38 | export STAGING_LIBDIR=${STAGING_LIBDIR} |
39 | 39 | ||
40 | nativepython3 setup.py --verbose \ | 40 | nativepython3 setup.py --verbose \ |
41 | build ${@oe.utils.parallel_make_argument(d, "-j %d")} \ | ||
41 | bdist_wheel --dist-dir ${PEP517_WHEEL_PATH} \ | 42 | bdist_wheel --dist-dir ${PEP517_WHEEL_PATH} \ |
42 | ${SETUPTOOLS_BUILD_ARGS} | 43 | ${SETUPTOOLS_BUILD_ARGS} |
43 | } | 44 | } |