summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-22 09:46:42 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-25 14:08:47 +0200
commit2ea89c2678b86f6fbd1da262092c28b3889f9288 (patch)
treeb3c064d85bb88d517eda5d509763202e4f7d0bbd /eclass
parentdistutils-r1.eclass: Run build_ext only if there are 2+ files (diff)
downloadgentoo-2ea89c2678b86f6fbd1da262092c28b3889f9288.tar.gz
gentoo-2ea89c2678b86f6fbd1da262092c28b3889f9288.tar.bz2
gentoo-2ea89c2678b86f6fbd1da262092c28b3889f9288.zip
distutils-r1.eclass: Run build_ext only with --jobs -gt 1
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 d213cca4bb72..c314c52a78cd 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1196,7 +1196,7 @@ distutils-r1_python_compile() {
#
# see extension.py for list of suffixes
# .pyx is added for Cython
- if [[ 2 -eq $(
+ if [[ 1 -ne ${jobs} && 2 -eq $(
find '(' -name '*.c' -o -name '*.cc' -o -name '*.cpp' \
-o -name '*.cxx' -o -name '*.c++' -o -name '*.m' \
-o -name '*.mm' -o -name '*.pyx' ')' -printf '\n' |