Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: Zac Medico <zmedico@g.o>, gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] Default MAKEOPTS to -j(ncpus+1) when unset
Date: Sun, 18 Jan 2015 04:48:17
Message-Id: 54BB3B0B.5020006@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] Default MAKEOPTS to -j(ncpus+1) when unset by Zac Medico
1 On 01/17/2015 08:22 PM, Zac Medico wrote:
2 > On 01/17/2015 02:45 AM, Michał Górny wrote:
3 >> Default MAKEOPTS job number to (number of CPUs + 1) when it is not
4 >> provided in the ebuild environment.
5 >>
6 >> Suggested-By: Daniel Robbins <drobbins@××××××.org>
7 >> ---
8 >> pym/portage/package/ebuild/doebuild.py | 8 +++++++-
9 >> pym/portage/util/cpuinfo.py | 19 +++++++++++++++++++
10 >> 2 files changed, 26 insertions(+), 1 deletion(-)
11 >> create mode 100644 pym/portage/util/cpuinfo.py
12 >
13 > LGTM.
14 >
15
16 Actually, Arfrever tells me that the multiprocessing module is not
17 available if python is built without threading support. So, we need to
18 handle the ImportError and either do nothing or parse /proc/cpuinfo or
19 something like that.
20 --
21 Thanks,
22 Zac

Replies