pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Use parallel building for Python 3.5+ pack...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58be7780dda8
branches:  trunk
changeset: 377964:58be7780dda8
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Mar 25 07:32:19 2018 +0000

description:
Use parallel building for Python 3.5+ packages

diffstat:

 lang/python/extension.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 019845ace4c4 -r 58be7780dda8 lang/python/extension.mk
--- a/lang/python/extension.mk  Sun Mar 25 03:56:28 2018 +0000
+++ b/lang/python/extension.mk  Sun Mar 25 07:32:19 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.51 2017/07/03 18:14:40 joerg Exp $
+# $NetBSD: extension.mk,v 1.52 2018/03/25 07:32:19 adam Exp $
 
 .include "../../lang/python/pyversion.mk"
 
@@ -17,6 +17,12 @@
 PYSETUP?=              setup.py
 PYSETUPBUILDTARGET?=   build
 PYSETUPBUILDARGS?=     #empty
+# Python 3.5+ supports parallel building
+.if defined(MAKE_JOBS) && ${_PYTHON_VERSION} > 34
+.  if !defined(MAKE_JOBS_SAFE) || empty(MAKE_JOBS_SAFE:M[nN][oO])
+PYSETUPBUILDARGS+=     -j${MAKE_JOBS}
+.  endif
+.endif
 PYSETUPARGS?=          #empty
 PYSETUPINSTALLARGS?=   #empty
 PYSETUPOPTARGS?=       -c -O1



Home | Main Index | Thread Index | Old Index