diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-22 09:46:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-25 14:08:47 +0200 |
commit | 2ea89c2678b86f6fbd1da262092c28b3889f9288 (patch) | |
tree | b3c064d85bb88d517eda5d509763202e4f7d0bbd /eclass | |
parent | distutils-r1.eclass: Run build_ext only if there are 2+ files (diff) | |
download | gentoo-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.eclass | 2 |
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' | |