summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-07 01:04:22 +0000
committerrillig <rillig@pkgsrc.org>2007-01-07 01:04:22 +0000
commit8504488663f63545ca9b1a886e1d3b5878b5d74e (patch)
treeb7bea201bb0ad59b352a5fd817c972e3cb20d433
parent28fb36a9a5d6b447cc23f88df0a2f8e756700a76 (diff)
downloadpkgsrc-8504488663f63545ca9b1a886e1d3b5878b5d74e.tar.gz
In the BUILD_DEFS message, print which Python version has actually been
selected.
-rw-r--r--lang/python/pyversion.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 5dc184aea84..6e2909ba352 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.45 2006/09/07 22:12:15 rillig Exp $
+# $NetBSD: pyversion.mk,v 1.46 2007/01/07 01:04:22 rillig Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -33,12 +33,17 @@
# Possible values: (defined) (undefined)
# Default: (undefined)
#
+# Keywords: python
+#
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
.include "../../mk/bsd.prefs.mk"
+BUILD_DEFS+= PYTHON_VERSION_DEFAULT
+BUILD_DEFS_EFFECTS+= PYPACKAGE
+
PYTHON_VERSION_DEFAULT?= 24
.if ${OPSYS} == "Darwin"
PYTHON_VERSIONS_INCOMPATIBLE+= 22 21 20 15
@@ -73,7 +78,6 @@ _PYTHON_VERSION= ${PYTHON_VERSION_REQD}
.else
# if the default is accepted, it is first choice
. if !defined(_PYTHON_VERSION)
-BUILD_DEFS+= PYTHON_VERSION_DEFAULT
. if defined(_PYTHON_VERSION_${PYTHON_VERSION_DEFAULT}_OK)
_PYTHON_VERSION= ${PYTHON_VERSION_DEFAULT}
. endif