mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-14 00:16:59 +02:00
eclass/python-utils-r1: Sync with Gentoo
It's from Gentoo commit 28b4477c365acffb7b04300f028fa87e9875932f.
This commit is contained in:
parent
59856cf0ce
commit
4a8830360f
@ -40,8 +40,8 @@ inherit multiprocessing toolchain-funcs
|
||||
# All supported Python implementations, most preferred last.
|
||||
_PYTHON_ALL_IMPLS=(
|
||||
pypy3
|
||||
python3_{10..13}
|
||||
python3_13t
|
||||
python3_{10..13}
|
||||
)
|
||||
readonly _PYTHON_ALL_IMPLS
|
||||
|
||||
@ -450,20 +450,15 @@ _python_export() {
|
||||
local d
|
||||
case ${impl} in
|
||||
python*)
|
||||
PYTHON_PKG_DEP="dev-lang/python:${impl#python}"
|
||||
PYTHON_PKG_DEP="dev-lang/python:${impl#python}${PYTHON_REQ_USE:+[${PYTHON_REQ_USE}]}"
|
||||
;;
|
||||
pypy3)
|
||||
PYTHON_PKG_DEP="dev-python/${impl}:="
|
||||
PYTHON_PKG_DEP=">=dev-lang/pypy-3.10:=[symlink${PYTHON_REQ_USE:+,${PYTHON_REQ_USE}}]"
|
||||
;;
|
||||
*)
|
||||
die "Invalid implementation: ${impl}"
|
||||
esac
|
||||
|
||||
# use-dep
|
||||
if [[ ${PYTHON_REQ_USE} ]]; then
|
||||
PYTHON_PKG_DEP+=[${PYTHON_REQ_USE}]
|
||||
fi
|
||||
|
||||
export PYTHON_PKG_DEP
|
||||
debug-print "${FUNCNAME}: PYTHON_PKG_DEP = ${PYTHON_PKG_DEP}"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user