python-utils: add support for python3.10 - 3.19
Nothing uses this atm, but it'll make importing from Gentoo easier,
especially when we (eventually) upgrade to Python 3.11+.
BUG=b:187794810
TEST=CQ passes
Change-Id: I30086ca7fb7c1f4b5a5ca12387555deebffd42d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/eclass-overlay/+/4341811
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index e997f7e..ab31750 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -40,7 +40,7 @@
# All supported Python implementations, most preferred last.
_PYTHON_ALL_IMPLS=(
pypy3
- python3_7 python3_8 python3_9 python3_6
+ python3_{19..6}
)
readonly _PYTHON_ALL_IMPLS
@@ -76,7 +76,7 @@
# keep in sync with _PYTHON_ALL_IMPLS!
# (not using that list because inline patterns shall be faster)
case "${impl}" in
- python3_[6-9]|pypy3)
+ python3_[6-9]|python3_1[0-9]|pypy3)
return 0
;;
*)