summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-09-22 13:46:09 +0000
committertron <tron@pkgsrc.org>2009-09-22 13:46:09 +0000
commitb65b946d69511094cc6dcb088e599ab317ec5498 (patch)
tree4b0f498e619db70a697daeebbece3331343a557c /lang/python
parent1a2d1b8d9d7c70065eda22fb8e993cfa0c590af1 (diff)
downloadpkgsrc-b65b946d69511094cc6dcb088e599ab317ec5498.tar.gz
Use Python 2.6 by default under Mac OS X if we compile for the 64-Bit ABI.
Not even Apple were able to build a 64-Bit version of Python 2.5.
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 46996d15973..e477554a19a 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.74 2009/09/07 18:21:43 joerg Exp $
+# $NetBSD: pyversion.mk,v 1.75 2009/09/22 13:46:09 tron Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -68,7 +68,11 @@ PYTHON_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
BUILD_DEFS+= PYTHON_VERSION_DEFAULT
BUILD_DEFS_EFFECTS+= PYPACKAGE
+.if ${OPSYS} != "Darwin" || ${ABI} != "64"
PYTHON_VERSION_DEFAULT?= 25
+.else
+PYTHON_VERSION_DEFAULT?= 26
+.endif
PYTHON_VERSIONS_ACCEPTED?= 26 25 24
PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default