diff options
-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 |