summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2018-11-13 11:57:26 +0000
committermarkd <markd@pkgsrc.org>2018-11-13 11:57:26 +0000
commita6668bb27fbc48688319a277015e2aad45018ce3 (patch)
tree7c6644bdd1bd2b4343bd9c0413300afe1a832c78 /lang/python
parent5dc9d1e7aced890ad34f4eceeaa9daab899aaa64 (diff)
downloadpkgsrc-a6668bb27fbc48688319a277015e2aad45018ce3.tar.gz
python: handle pythons with pymalloc option when setting PYTHONCONFIG
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index ccfd779b682..08d7894932f 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.126 2018/10/19 16:12:36 bsiegert Exp $
+# $NetBSD: pyversion.mk,v 1.127 2018/11/13 11:57:26 markd Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -176,7 +176,11 @@ BUILDLINK_DEPMETHOD.python?= build
.endif
PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX}
+.if exists(${PYTHONBIN}m)
+PYTHONCONFIG= ${LOCALBASE}/bin/python${PYVERSSUFFIX}m-config
+.else
PYTHONCONFIG= ${LOCALBASE}/bin/python${PYVERSSUFFIX}-config
+.endif
PY_COMPILE_ALL= \
${PYTHONBIN} ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q
PY_COMPILE_O_ALL= \