summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorrillig <rillig>2008-01-31 13:47:19 +0000
committerrillig <rillig>2008-01-31 13:47:19 +0000
commit3b02a7c898b73121beee16eae518023a2b603276 (patch)
tree72882df5fb214c397bf20d300eccedb9211a1781 /lang/python
parentfb268593ee0bf67507ffff42b68db612ec53756c (diff)
downloadpkgsrc-3b02a7c898b73121beee16eae518023a2b603276.tar.gz
Explained the comment for PYTHON_VERSIONS_ACCEPTED and documented why
PYTHON_VERSIONS_INCOMPATIBLE should be used instead.
Diffstat (limited to 'lang/python')
-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