pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Add a package settable `PY_PEP3147=no' for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d957af5f28f
branches:  trunk
changeset: 626398:5d957af5f28f
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Nov 10 13:05:54 2013 +0000

description:
Add a package settable `PY_PEP3147=no' for the case PEP 3147 is not supported.

diffstat:

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

diffs (21 lines):

diff -r 47f4b174620a -r 5d957af5f28f lang/python/extension.mk
--- a/lang/python/extension.mk  Sun Nov 10 12:50:58 2013 +0000
+++ b/lang/python/extension.mk  Sun Nov 10 13:05:54 2013 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index