diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-28 15:37:00 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-01 09:30:37 +0200 |
commit | 49d0eea31e3d4f984566e8a126832a7b1fb1e8e9 (patch) | |
tree | 1d2ca1e27cbb4c32a0bba1aecb1b332e680030c5 /eclass | |
parent | multiprocessing.eclass: Default makeopts_jobs to inf=nproc+1 (diff) | |
download | gentoo-49d0eea31e3d4f984566e8a126832a7b1fb1e8e9.tar.gz gentoo-49d0eea31e3d4f984566e8a126832a7b1fb1e8e9.tar.bz2 gentoo-49d0eea31e3d4f984566e8a126832a7b1fb1e8e9.zip |
distutils-r1.eclass: Utilize the new makeopts_jobs default
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 2c49a5c2bc05..1573d803f3f6 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1148,11 +1148,7 @@ distutils-r1_python_compile() { fi # distutils is parallel-capable since py3.5 - local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}" INF) - if [[ ${jobs} == INF ]]; then - local nproc=$(get_nproc) - jobs=$(( nproc + 1 )) - fi + local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}") if [[ ${DISTUTILS_USE_PEP517} ]]; then # issue build_ext only if it looks like we have at least |