diff options
author | adam <adam@pkgsrc.org> | 2018-03-25 07:32:19 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-03-25 07:32:19 +0000 |
commit | 4dbb3c5ec4bfc0693f668140ca4c3f3a841ba8b1 (patch) | |
tree | 84c7a51b780321c85537f55f83cdee5470cb7d39 /lang | |
parent | 625ab9db01ffb632a176c1fab00e68ff561140a2 (diff) | |
download | pkgsrc-4dbb3c5ec4bfc0693f668140ca4c3f3a841ba8b1.tar.gz |
Use parallel building for Python 3.5+ packages
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/extension.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 6d612dc41f4..37b050c2883 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -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 |