From: "Michal Gorny (mgorny)" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog distutils-r1.eclass
Date: Sat, 5 Jan 2013 10:02:44 +0000 (UTC) [thread overview]
Message-ID: <20130105100244.290802171D@flycatcher.gentoo.org> (raw)
mgorny 13/01/05 10:02:44
Modified: ChangeLog distutils-r1.eclass
Log:
Support overriding job-count for parallel build.
Revision Changes Path
1.601 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.601&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.601&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.600&r2=1.601
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.600
retrieving revision 1.601
diff -u -r1.600 -r1.601
--- ChangeLog 5 Jan 2013 10:01:20 -0000 1.600
+++ ChangeLog 5 Jan 2013 10:02:44 -0000 1.601
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.600 2013/01/05 10:01:20 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.601 2013/01/05 10:02:44 mgorny Exp $
+
+ 05 Jan 2013; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
+ Support overriding job-count for parallel build.
05 Jan 2013; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass:
Support converting files with python2 and python3 shebangs.
1.38 eclass/distutils-r1.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.38&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.38&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?r1=1.37&r2=1.38
Index: distutils-r1.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- distutils-r1.eclass 5 Jan 2013 10:00:30 -0000 1.37
+++ distutils-r1.eclass 5 Jan 2013 10:02:44 -0000 1.38
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.37 2013/01/05 10:00:30 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.38 2013/01/05 10:02:44 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -67,6 +67,14 @@
RDEPEND=${PYTHON_DEPS}
DEPEND=${PYTHON_DEPS}
+# @ECLASS-VARIABLE: DISTUTILS_JOBS
+# @DEFAULT_UNSET
+# @DECRIPTION:
+# The number of parallel jobs to run for distutils-r1 parallel builds.
+# If unset, the job-count in ${MAKEOPTS} will be used.
+#
+# This variable is intended to be set in make.conf.
+
# @ECLASS-VARIABLE: PATCHES
# @DEFAULT_UNSET
# @DESCRIPTION:
@@ -143,15 +151,6 @@
# This variable can be used to disable the afore-mentioned feature
# in case it causes issues with the package.
-#
-# If in-source builds are used, the eclass will create a copy of package
-# sources for each Python implementation in python_prepare_all(),
-# and work on that copy afterwards.
-#
-# If out-of-source builds are used, the eclass will instead work
-# on the sources directly, prepending setup.py arguments with
-# 'build --build-base ${BUILD_DIR}' to enforce keeping & using built
-# files in the specific root.
# @ECLASS-VARIABLE: mydistutilsargs
# @DEFAULT_UNSET
# @DESCRIPTION:
@@ -425,6 +424,23 @@
"${@}"
}
+# @FUNCTION: _distutils-r1_multijob_init
+# @INTERNAL
+# @DESCRIPTION:
+# Init multijob, taking the job-count from ${DISTUTILS_JOBS}.
+_distutils-r1_multijob_init() {
+ debug-print-function ${FUNCNAME} "${@}"
+
+ local opts
+ if [[ ${DISTUTILS_JOBS} ]]; then
+ opts=-j${DISTUTILS_JOBS}
+ else
+ opts=${MAKEOPTS}
+ fi
+
+ multijob_init "${opts}"
+}
+
distutils-r1_src_prepare() {
debug-print-function ${FUNCNAME} "${@}"
@@ -435,7 +451,7 @@
distutils-r1_python_prepare_all
fi
- multijob_init
+ _distutils-r1_multijob_init
if declare -f python_prepare >/dev/null; then
python_foreach_impl distutils-r1_run_phase python_prepare
else
@@ -445,7 +461,7 @@
}
distutils-r1_src_configure() {
- multijob_init
+ _distutils-r1_multijob_init
if declare -f python_configure >/dev/null; then
python_foreach_impl distutils-r1_run_phase python_configure
else
@@ -461,7 +477,7 @@
distutils-r1_src_compile() {
debug-print-function ${FUNCNAME} "${@}"
- multijob_init
+ _distutils-r1_multijob_init
if declare -f python_compile >/dev/null; then
python_foreach_impl distutils-r1_run_phase python_compile
else
@@ -477,7 +493,7 @@
distutils-r1_src_test() {
debug-print-function ${FUNCNAME} "${@}"
- multijob_init
+ _distutils-r1_multijob_init
if declare -f python_test >/dev/null; then
python_foreach_impl distutils-r1_run_phase python_test
else
@@ -493,7 +509,7 @@
distutils-r1_src_install() {
debug-print-function ${FUNCNAME} "${@}"
- multijob_init
+ _distutils-r1_multijob_init
if declare -f python_install >/dev/null; then
python_foreach_impl distutils-r1_run_phase python_install
else
next reply other threads:[~2013-01-05 10:02 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-05 10:02 Michal Gorny (mgorny) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-07-18 0:07 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog distutils-r1.eclass Mike Gilbert (floppym)
2015-07-16 14:29 Michal Gorny (mgorny)
2015-01-31 2:49 Patrick Lauer (patrick)
2015-01-13 21:34 Michal Gorny (mgorny)
2014-12-27 19:00 Michal Gorny (mgorny)
2014-12-11 18:32 Michal Gorny (mgorny)
2014-12-11 9:07 Michal Gorny (mgorny)
2014-11-24 1:39 Mike Gilbert (floppym)
2014-08-24 13:23 Michal Gorny (mgorny)
2014-07-08 8:49 Michal Gorny (mgorny)
2014-06-22 7:01 Michal Gorny (mgorny)
2014-06-19 12:54 Michal Gorny (mgorny)
2014-05-19 5:00 Mike Gilbert (floppym)
2014-05-11 7:58 Michal Gorny (mgorny)
2014-01-18 15:06 Mike Gilbert (floppym)
2013-12-03 20:00 Mike Gilbert (floppym)
2013-12-02 13:14 Michal Gorny (mgorny)
2013-11-11 15:58 Michal Gorny (mgorny)
2013-10-26 17:47 Michal Gorny (mgorny)
2013-10-22 19:23 Michal Gorny (mgorny)
2013-10-22 15:15 Michal Gorny (mgorny)
2013-10-10 6:10 Michal Gorny (mgorny)
2013-09-28 19:11 Mike Gilbert (floppym)
2013-09-27 19:21 Michal Gorny (mgorny)
2013-09-27 19:19 Michal Gorny (mgorny)
2013-09-26 11:58 Michal Gorny (mgorny)
2013-09-18 22:48 Michal Gorny (mgorny)
2013-09-17 17:33 Michal Gorny (mgorny)
2013-08-25 21:15 Michal Gorny (mgorny)
2013-08-25 21:13 Michal Gorny (mgorny)
2013-08-25 21:12 Michal Gorny (mgorny)
2013-08-01 13:02 Michal Gorny (mgorny)
2013-07-21 19:00 Michal Gorny (mgorny)
2013-07-09 1:57 Mike Gilbert (floppym)
2013-04-18 15:47 Michal Gorny (mgorny)
2013-04-13 14:01 Michal Gorny (mgorny)
2013-04-10 15:38 Michal Gorny (mgorny)
2013-03-19 6:13 Michal Gorny (mgorny)
2013-03-13 21:51 Mike Gilbert (floppym)
2013-03-09 13:13 Michal Gorny (mgorny)
2013-03-04 19:29 Michal Gorny (mgorny)
2013-03-02 7:17 Michal Gorny (mgorny)
2013-03-02 7:16 Michal Gorny (mgorny)
2013-03-02 7:13 Michal Gorny (mgorny)
2013-02-26 14:34 Michal Gorny (mgorny)
2013-02-21 23:18 Michal Gorny (mgorny)
2013-02-10 16:15 Michal Gorny (mgorny)
2013-02-10 11:41 Michal Gorny (mgorny)
2013-02-10 11:39 Michal Gorny (mgorny)
2013-02-10 11:38 Michal Gorny (mgorny)
2013-01-27 16:39 Michal Gorny (mgorny)
2013-01-27 16:37 Michal Gorny (mgorny)
2013-01-20 21:41 Michal Gorny (mgorny)
2013-01-12 23:18 Michal Gorny (mgorny)
2013-01-12 23:17 Michal Gorny (mgorny)
2013-01-12 23:13 Michal Gorny (mgorny)
2013-01-12 23:13 Michal Gorny (mgorny)
2013-01-11 1:06 Mike Gilbert (floppym)
2013-01-10 22:09 Michal Gorny (mgorny)
2013-01-05 10:00 Michal Gorny (mgorny)
2013-01-04 3:12 Mike Gilbert (floppym)
2012-12-27 22:57 Michal Gorny (mgorny)
2012-12-09 20:56 Michal Gorny (mgorny)
2012-12-07 22:23 Michal Gorny (mgorny)
2012-12-07 21:09 Michal Gorny (mgorny)
2012-12-07 17:59 Michal Gorny (mgorny)
2012-12-07 17:57 Michal Gorny (mgorny)
2012-12-07 17:56 Michal Gorny (mgorny)
2012-12-01 10:54 Michal Gorny (mgorny)
2012-12-01 10:53 Michal Gorny (mgorny)
2012-12-01 10:52 Michal Gorny (mgorny)
2012-11-01 12:19 Michal Gorny (mgorny)
2012-10-29 13:30 Michal Gorny (mgorny)
2012-10-29 9:54 Michal Gorny (mgorny)
2012-10-29 9:49 Michal Gorny (mgorny)
2012-10-25 17:42 Michal Gorny (mgorny)
2012-10-15 12:51 Michal Gorny (mgorny)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130105100244.290802171D@flycatcher.gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox