From 49d0eea31e3d4f984566e8a126832a7b1fb1e8e9 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 28 Apr 2022 15:37:00 +0200 Subject: distutils-r1.eclass: Utilize the new makeopts_jobs default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad