python-utils-r1.eclass: python_optimize, enable py3.5 logic for pypy3

Enable the three-level optimization logic for pypy3, to account for
pypy3-5.7 being based on CPython 3.5 and using all three suffixes.
This commit is contained in:
Michał Górny
2017-04-30 21:22:05 +02:00
parent 265e3d045b
commit b7648fc3e5
+1 -1
View File
@@ -660,7 +660,7 @@ python_optimize() {
"${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}"
"${PYTHON}" -OO -m compileall -q -f -d "${instpath}" "${d}"
;;
python*)
python*|pypy3)
# both levels of optimization are separate since 3.5
"${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}"
"${PYTHON}" -O -m compileall -q -f -d "${instpath}" "${d}"