mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
python-utils-r1.eclass: Depend on dev-lang/pypy directly
Depend on `>=dev-lang/pypy-3.10:=` rather than the backwards compatibility `dev-python/pypy3` package. Note that the package needs to remain at least for some time after the next subslot bump, so that users rebuild all packages and get the updated dependency across the system. Note that this requires pkgcheck to be updated first. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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}"
|
||||
;;
|
||||
|
||||
@@ -79,6 +79,7 @@ for minor in {10..13} 13t; do
|
||||
test_var PYTHON_LIBS "python3_${minor}" "*-lpython3.${minor}*"
|
||||
fi
|
||||
test_var PYTHON_PKG_DEP "python3_${minor}" "*dev-lang/python*:3.${minor}"
|
||||
PYTHON_REQ_USE=sqlite test_var PYTHON_PKG_DEP "python3_${minor}" "*dev-lang/python*:3.${minor}\[sqlite\]"
|
||||
test_var PYTHON_SCRIPTDIR "python3_${minor}" "/usr/lib/python-exec/python3.${minor}"
|
||||
|
||||
tbegin "Testing that python3_${minor} is present in an impl array"
|
||||
@@ -126,7 +127,8 @@ if [[ -x /usr/bin/pypy3 ]]; then
|
||||
test_var PYTHON_SITEDIR pypy3 "/usr/lib*/pypy3.*/site-packages"
|
||||
test_var PYTHON_INCLUDEDIR pypy3 "/usr/include/pypy3.*"
|
||||
fi
|
||||
test_var PYTHON_PKG_DEP pypy3 '*dev-python/pypy3*:='
|
||||
test_var PYTHON_PKG_DEP pypy3 '*dev-lang/pypy*:=\[symlink\]'
|
||||
PYTHON_REQ_USE=sqlite test_var PYTHON_PKG_DEP pypy3 '*dev-lang/pypy*:=\[symlink,sqlite\]'
|
||||
test_var PYTHON_SCRIPTDIR pypy3 /usr/lib/python-exec/pypy3
|
||||
eoutdent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user