summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-31 13:47:19 +0000
committerrillig <rillig@pkgsrc.org>2008-01-31 13:47:19 +0000
commit300f843ec7037ff4aeb5dab17d6839a5db8f4ab0 (patch)
tree72882df5fb214c397bf20d300eccedb9211a1781 /lang
parent9c9af8e1c6af7d8ade43ab8fa23c8d97ffc17e7d (diff)
downloadpkgsrc-300f843ec7037ff4aeb5dab17d6839a5db8f4ab0.tar.gz
Explained the comment for PYTHON_VERSIONS_ACCEPTED and documented why
PYTHON_VERSIONS_INCOMPATIBLE should be used instead.
Diffstat (limited to 'lang')
-rw-r--r--lang/python/pyversion.mk15
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 0ea8b3189d4..9d9a4c40151 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,9 +1,9 @@
-# $NetBSD: pyversion.mk,v 1.47 2007/08/24 07:14:28 rillig Exp $
+# $NetBSD: pyversion.mk,v 1.48 2008/01/31 13:47:19 rillig Exp $
# This file determines which Python version is used as a dependency for
# a package.
#
-# The following variables may be set by the pkgsrc user in mk.conf:
+# === User-settable variables ===
#
# PYTHON_VERSION_DEFAULT
# The preferred Python version to use.
@@ -11,12 +11,14 @@
# Possible values: 15 20 21 22 23 24
# Default: 24
#
-# The following variables may be set by a package before including this
-# file:
+# === Package-settable variables ===
#
# PYTHON_VERSIONS_ACCEPTED
# The Python versions that are acceptable for the package. The
-# order of the entries matters.
+# order of the entries matters, since earlier entries are
+# preferred over later ones. Using PYTHON_VERSIONS_INCOMPATIBLE
+# is preferred over this variable, since it automatically extends
+# to newly introduced versions.
#
# Possible values: 24 23 22 21 20 15
# Default: (all)
@@ -144,8 +146,7 @@ PYPKGPREFIX= py15
BUILD_DEPENDS+= py15-distutils-[0-9]*:../../devel/py-distutils
.endif
.else
-# force an error
-PKG_SKIP_REASON+= "No valid Python version"
+PKG_FAIL_REASON+= "No valid Python version"
.endif
PTHREAD_OPTS+= require