pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Add support for Python 3.10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b249dcee7497
branches:  trunk
changeset: 459381:b249dcee7497
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 05 19:08:13 2021 +0000

description:
Add support for Python 3.10

diffstat:

 lang/python/plist-python.awk |   4 ++--
 lang/python/pyversion.mk     |  12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (62 lines):

diff -r 4d15aa0c098d -r b249dcee7497 lang/python/plist-python.awk
--- a/lang/python/plist-python.awk      Tue Oct 05 19:07:50 2021 +0000
+++ b/lang/python/plist-python.awk      Tue Oct 05 19:08:13 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: plist-python.awk,v 1.2 2015/12/05 17:12:13 adam Exp $
+# $NetBSD: plist-python.awk,v 1.3 2021/10/05 19:08:13 adam Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -45,7 +45,7 @@
 /^[^@]/ && /[^\/]+\.py[co]$/ {
        sub(/[^\/]+\.py[co]$/, "__pycache__/&")
        sub(/\.py[co]$/, ".cpython-" PYVERS "&")
-       if (PYVERS ~ /^3[5-9]$/ && $0 ~ /\.pyo$/) {
+       if (PYVERS ~ /^3[0-9]+$/ && $0 ~ /\.pyo$/) {
                sub(/\.pyo$/, ".opt-1.pyc")
        }
 }
diff -r 4d15aa0c098d -r b249dcee7497 lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Tue Oct 05 19:07:50 2021 +0000
+++ b/lang/python/pyversion.mk  Tue Oct 05 19:08:13 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.137 2021/10/01 12:27:47 nia Exp $
+# $NetBSD: pyversion.mk,v 1.138 2021/10/05 19:08:13 adam Exp $
 
 # This file determines which Python version is used as a dependency for
 # a package.
@@ -8,7 +8,7 @@
 # PYTHON_VERSION_DEFAULT
 #      The preferred Python version to use.
 #
-#      Possible values: 27 36 37 38 39
+#      Possible values: 27 36 37 38 39 310
 #      Default: 39
 #
 # === Infrastructure variables ===
@@ -27,13 +27,13 @@
 #      order of the entries matters, since earlier entries are
 #      preferred over later ones.
 #
-#      Possible values: 39 38 37 36 27
-#      Default: 39 38 37 36 27
+#      Possible values: 310 39 38 37 36 27
+#      Default: 310 39 38 37 36 27
 #
 # PYTHON_VERSIONS_INCOMPATIBLE
 #      The Python versions that are NOT acceptable for the package.
 #
-#      Possible values: 27 36 37 38 39
+#      Possible values: 27 36 37 38 39 310
 #      Default: (empty)
 #
 # PYTHON_FOR_BUILD_ONLY
@@ -85,7 +85,7 @@
 BUILD_DEFS_EFFECTS+=   PYPACKAGE
 
 PYTHON_VERSION_DEFAULT?=               39
-PYTHON_VERSIONS_ACCEPTED?=             39 38 37 36 27
+PYTHON_VERSIONS_ACCEPTED?=             310 39 38 37 36 27
 PYTHON_VERSIONS_INCOMPATIBLE?=         # empty by default
 
 # transform the list into individual variables



Home | Main Index | Thread Index | Old Index