summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-22 09:48:20 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-25 14:08:48 +0200
commit2b1a7222674f0f1ede565f1a83013f98100a4cb5 (patch)
tree29aaafa9ed3a6dc4f21bfd1e8a51633db0b5e938 /eclass
parentdistutils-r1.eclass: Run build_ext only with --jobs -gt 1 (diff)
downloadgentoo-2b1a7222674f0f1ede565f1a83013f98100a4cb5.tar.gz
gentoo-2b1a7222674f0f1ede565f1a83013f98100a4cb5.tar.bz2
gentoo-2b1a7222674f0f1ede565f1a83013f98100a4cb5.zip
distutils-r1.eclass: Account for func args when counting makejobs
Account for distutils-r1_python_compile arguments when counting makejobs. This is needed to correctly detect forced "-j1", e.g. in dev-python/pandas. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index c314c52a78cd..4b376d6a1cc5 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1182,7 +1182,7 @@ distutils-r1_python_compile() {
fi
# distutils is parallel-capable since py3.5
- local jobs=$(makeopts_jobs "${MAKEOPTS}" INF)
+ local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}" INF)
if [[ ${jobs} == INF ]]; then
local nproc=$(get_nproc)
jobs=$(( nproc + 1 ))