eclass/python-utils-r1: Sync with Gentoo

It's from Gentoo commit d4f682ffb030d6f8d8afac8438bda89bf1967dce.
This commit is contained in:
Flatcar Buildbot 2023-05-22 07:14:29 +00:00 committed by Krzesimir Nowak
parent c0e8a858a1
commit 2a4b574df6

View File

@ -40,7 +40,7 @@ inherit multiprocessing toolchain-funcs
# All supported Python implementations, most preferred last. # All supported Python implementations, most preferred last.
_PYTHON_ALL_IMPLS=( _PYTHON_ALL_IMPLS=(
pypy3 pypy3
python3_{9..11} python3_{10..11}
) )
readonly _PYTHON_ALL_IMPLS readonly _PYTHON_ALL_IMPLS
@ -52,7 +52,7 @@ _PYTHON_HISTORICAL_IMPLS=(
jython2_7 jython2_7
pypy pypy1_{8,9} pypy2_0 pypy pypy1_{8,9} pypy2_0
python2_{5..7} python2_{5..7}
python3_{1..8} python3_{1..9}
) )
readonly _PYTHON_HISTORICAL_IMPLS readonly _PYTHON_HISTORICAL_IMPLS
@ -131,7 +131,7 @@ _python_set_impls() {
case ${i} in case ${i} in
pypy3|python3_9|python3_1[01]) pypy3|python3_9|python3_1[01])
;; ;;
jython2_7|pypy|pypy1_[89]|pypy2_0|python2_[5-7]|python3_[1-8]) jython2_7|pypy|pypy1_[89]|pypy2_0|python2_[5-7]|python3_[1-9])
obsolete+=( "${i}" ) obsolete+=( "${i}" )
;; ;;
*) *)
@ -440,8 +440,6 @@ _python_export() {
PYTHON_PKG_DEP) PYTHON_PKG_DEP)
local d local d
case ${impl} in case ${impl} in
python3.9)
PYTHON_PKG_DEP=">=dev-lang/python-3.9.16-r1:3.9";;
python3.10) python3.10)
PYTHON_PKG_DEP=">=dev-lang/python-3.10.9-r1:3.10";; PYTHON_PKG_DEP=">=dev-lang/python-3.10.9-r1:3.10";;
python3.11) python3.11)