summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-10-19 16:12:36 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-10-19 16:12:36 +0000
commitf2b94a52487d3071923812f80093be77ebfbdd4e (patch)
treef2a20df99bdb5df1c1bd21e7a383097508bc710f /lang/python
parent9180b94290212f85421cf440c8b935a231ecbd17 (diff)
downloadpkgsrc-f2b94a52487d3071923812f80093be77ebfbdd4e.tar.gz
Always give full interpreter path to cmake.
This was previously Darwin-only but I ran into the same situation when building finance/gnucash on NetBSD. /usr/pkg/bin/python happened to be 2.7, but it was used instead of python3.7, leading to a build failure. This commit fixes that.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index dc09193ebc5..ccfd779b682 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.125 2018/10/07 23:56:23 ryoon Exp $
+# $NetBSD: pyversion.mk,v 1.126 2018/10/19 16:12:36 bsiegert Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -203,9 +203,10 @@ ALL_ENV+= PYTHON=${PYTHONBIN}
# used by FindPythonInterp.cmake and FindPythonLibs.cmake
CMAKE_ARGS+= -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX}
# set this explicitly, as by default it will prefer the built in framework
-CMAKE_ARGS.Darwin+= -DPYTHON_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC}
-CMAKE_ARGS.Darwin+= -DPYTHON_INCLUDE_PATH:PATH=${BUILDLINK_DIR}/${PYINC}
-CMAKE_ARGS.Darwin+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN}
+# on Darwin
+CMAKE_ARGS+= -DPYTHON_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC}
+CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${BUILDLINK_DIR}/${PYINC}
+CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN}
.endif
.endif # PYTHON_PYVERSION_MK