1 |
commit: 49d0eea31e3d4f984566e8a126832a7b1fb1e8e9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 13:37:00 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 1 07:30:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49d0eea3 |
7 |
|
8 |
distutils-r1.eclass: Utilize the new makeopts_jobs default |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/distutils-r1.eclass | 6 +----- |
13 |
1 file changed, 1 insertion(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
16 |
index 2c49a5c2bc05..1573d803f3f6 100644 |
17 |
--- a/eclass/distutils-r1.eclass |
18 |
+++ b/eclass/distutils-r1.eclass |
19 |
@@ -1148,11 +1148,7 @@ distutils-r1_python_compile() { |
20 |
fi |
21 |
|
22 |
# distutils is parallel-capable since py3.5 |
23 |
- local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}" INF) |
24 |
- if [[ ${jobs} == INF ]]; then |
25 |
- local nproc=$(get_nproc) |
26 |
- jobs=$(( nproc + 1 )) |
27 |
- fi |
28 |
+ local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}") |
29 |
|
30 |
if [[ ${DISTUTILS_USE_PEP517} ]]; then |
31 |
# issue build_ext only if it looks like we have at least |