diff options
author | obache <obache> | 2013-11-10 13:05:54 +0000 |
---|---|---|
committer | obache <obache> | 2013-11-10 13:05:54 +0000 |
commit | 5c0e50aacb1781676658c93b80dcc53a3545fd38 (patch) | |
tree | 4e26321fb31e21853c063ae3a8cf5fa313fedf9e /lang/python | |
parent | ce9d8955e2def261e0d144b2c97c1163e3e3b237 (diff) | |
download | pkgsrc-5c0e50aacb1781676658c93b80dcc53a3545fd38.tar.gz |
Add a package settable `PY_PEP3147=no' for the case PEP 3147 is not supported.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/extension.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 37f0b447761..dda64f21082 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.34 2013/10/30 08:39:07 obache Exp $ +# $NetBSD: extension.mk,v 1.35 2013/11/10 13:05:54 obache Exp $ .include "../../lang/python/pyversion.mk" @@ -62,7 +62,11 @@ PLIST_SUBST+= PYINC=${PYINC} PYLIB=${PYLIB} PYSITELIB=${PYSITELIB} .endif # prepare Python>=32 bytecode file location change +# http://www.python.org/dev/peps/pep-3147/ .if empty(_PYTHON_VERSION:M2?) && ${_PYTHON_VERSION} != "31" +PY_PEP3147?= yes +.endif +.if defined(PY_PEP3147) && !empty(PY_PEP3147:M[yY][eE][sS]) PLIST_AWK+= -f ${PKGSRCDIR}/lang/python/plist-python.awk PLIST_AWK_ENV+= PYTHON_SOABI="cpython-${_PYTHON_VERSION}" .endif |