commit: 0f4259b7529fbb31a16f82d0881eb893cd8cb195
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 8 17:19:33 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 14 10:16:13 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f4259b7
python-utils-r1.eclass: Update python_optimize for PyPy3.9
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/python-utils-r1.eclass | 5 +++--
1 file 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)