summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-08 18:19:33 +0100
committerMichał Górny <mgorny@gentoo.org>2022-12-14 11:16:13 +0100
commit0f4259b7529fbb31a16f82d0881eb893cd8cb195 (patch)
tree774d74c60b0b0fd14b51603b3dc17a38e8e9bcfa /eclass/python-utils-r1.eclass
parentpython-utils-r1.eclass: Clean up post disabling python2_7 compat (diff)
downloadgentoo-0f4259b7529fbb31a16f82d0881eb893cd8cb195.tar.gz
gentoo-0f4259b7529fbb31a16f82d0881eb893cd8cb195.tar.bz2
gentoo-0f4259b7529fbb31a16f82d0881eb893cd8cb195.zip
python-utils-r1.eclass: Update python_optimize for PyPy3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 84c37cd29d60..df955371483e 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -629,13 +629,14 @@ python_optimize() {
einfo "Optimize Python modules for ${instpath}"
case "${EPYTHON}" in
- python3.8|pypy3)
+ python3.8)
# both levels of optimization are separate since 3.5
"${PYTHON}" -m compileall -j "${jobs}" -q -f -d "${instpath}" "${d}"
"${PYTHON}" -O -m compileall -j "${jobs}" -q -f -d "${instpath}" "${d}"
"${PYTHON}" -OO -m compileall -j "${jobs}" -q -f -d "${instpath}" "${d}"
;;
- python*)
+ python*|pypy3)
+ # Python 3.9+
"${PYTHON}" -m compileall -j "${jobs}" -o 0 -o 1 -o 2 --hardlink-dupes -q -f -d "${instpath}" "${d}"
;;
pypy)