Skip to content

Commit 743b1a4

Browse files
committed
Fix the number of CPUs used in compilation.
1 parent 6476a46 commit 743b1a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Linux/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ adjust_build_environment() {
191191
'import sys; print "%s.%s" % sys.version_info[:2]')
192192
PYTHONDIR=$LIBDIR/python${PYTHON_VERSION}/site-packages
193193
: ${NCPU:=$(${PYTHON} -c \
194-
'from multiprocessing import cpu_count; print max(4, cpu_count())')}
194+
'from multiprocessing import cpu_count; print min(4, cpu_count())')}
195195
cpath=( $BASEDIR/include $cpath )
196196
library_path=( ${BASEDIR}/lib $library_path )
197197
ld_library_path=( ${BASEDIR}/lib $ld_library_path )

Linux/makedist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fi
133133
: ${PYTHON:==python}
134134
: ${SCONS:==scons}
135135
: ${NCPU:=$(${PYTHON} -c \
136-
'from multiprocessing import cpu_count; print max(4, cpu_count())')}
136+
'from multiprocessing import cpu_count; print min(4, cpu_count())')}
137137
if [[ -z $TAR ]]; then
138138
TAR=tar
139139
if [[ $OSTYPE == darwin* ]]; then

0 commit comments

Comments
 (0)