From: Michał Górny Date: Sun, 30 Apr 2017 16:28:11 +0000 (+0200) Subject: python-utils-r1.eclass: python_optimize, enable py3.5 logic for pypy3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b7648fc3e5dff19eff932645c26d45f195521b13;p=gentoo.git 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. --- diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 49a605b9e159..66a359e8daee 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -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}"