From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8D71C138A1A for ; Sun, 18 Jan 2015 04:48:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BF67E08A8; Sun, 18 Jan 2015 04:48:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 262CBE0876 for ; Sun, 18 Jan 2015 04:48:14 +0000 (UTC) Received: from [192.168.0.13] (ip174-67-205-96.oc.oc.cox.net [174.67.205.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 1EDD534070C; Sun, 18 Jan 2015 04:48:12 +0000 (UTC) Message-ID: <54BB3B0B.5020006@gentoo.org> Date: Sat, 17 Jan 2015 20:48:11 -0800 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: Zac Medico , gentoo-portage-dev@lists.gentoo.org CC: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Subject: Re: [gentoo-portage-dev] [PATCH] Default MAKEOPTS to -j(ncpus+1) when unset References: <1421491535-32166-1-git-send-email-mgorny@gentoo.org> <54BB34F0.1030802@gentoo.org> In-Reply-To: <54BB34F0.1030802@gentoo.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 18fe54a5-d605-4ee1-8296-3442e7d80fcd X-Archives-Hash: bec7d9829e448b835ae0bc4606cf2475 On 01/17/2015 08:22 PM, Zac Medico wrote: > On 01/17/2015 02:45 AM, Michał Górny wrote: >> Default MAKEOPTS job number to (number of CPUs + 1) when it is not >> provided in the ebuild environment. >> >> Suggested-By: Daniel Robbins >> --- >> pym/portage/package/ebuild/doebuild.py | 8 +++++++- >> pym/portage/util/cpuinfo.py | 19 +++++++++++++++++++ >> 2 files changed, 26 insertions(+), 1 deletion(-) >> create mode 100644 pym/portage/util/cpuinfo.py > > LGTM. > Actually, Arfrever tells me that the multiprocessing module is not available if python is built without threading support. So, we need to handle the ImportError and either do nothing or parse /proc/cpuinfo or something like that. -- Thanks, Zac