summaryrefslogtreecommitdiff
path: root/lang/python
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
commit9ac98044acacd4de9350c1dc1f24573012eeaef1 (patch)
treeb7bea201bb0ad59b352a5fd817c972e3cb20d433 /lang/python
parentb69640f761b7ea601da6954107839d2f3f643b12 (diff)
downloadpkgsrc-9ac98044acacd4de9350c1dc1f24573012eeaef1.tar.gz
In the BUILD_DEFS message, print which Python version has actually been
selected.
Diffstat (limited to 'lang/python')
-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