mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
eclass/python-utils-r1: Sync with Gentoo
It's from Gentoo commit b71b3342dc4c197c5aaf77ef7fff56a9cc06c98d.
This commit is contained in:
parent
3a295d4daa
commit
cf2e1de136
@ -238,12 +238,12 @@ _python_impl_matches() {
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
3.9)
|
||||
# the only unmasked pypy3 version is pypy3.9 atm
|
||||
3.9|3.10)
|
||||
# <pypy3-7.3.12 is 3.9, >=7.3.12 is 3.10
|
||||
[[ ${impl} == python${pattern/./_} || ${impl} == pypy3 ]] &&
|
||||
return 0
|
||||
;;
|
||||
3.8|3.1[0-2])
|
||||
3.8|3.1[1-2])
|
||||
[[ ${impl} == python${pattern/./_} ]] && return 0
|
||||
;;
|
||||
*)
|
||||
@ -448,11 +448,11 @@ _python_export() {
|
||||
local d
|
||||
case ${impl} in
|
||||
python3.10)
|
||||
PYTHON_PKG_DEP=">=dev-lang/python-3.10.11:3.10";;
|
||||
PYTHON_PKG_DEP=">=dev-lang/python-3.10.12:3.10";;
|
||||
python3.11)
|
||||
PYTHON_PKG_DEP=">=dev-lang/python-3.11.3:3.11";;
|
||||
PYTHON_PKG_DEP=">=dev-lang/python-3.11.4:3.11";;
|
||||
python3.12)
|
||||
PYTHON_PKG_DEP=">=dev-lang/python-3.12.0_beta1:3.12";;
|
||||
PYTHON_PKG_DEP=">=dev-lang/python-3.12.0_beta3:3.12";;
|
||||
pypy3)
|
||||
PYTHON_PKG_DEP='>=dev-python/pypy3-7.3.11_p1:0=';;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user