From b7648fc3e5dff19eff932645c26d45f195521b13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 30 Apr 2017 18:28:11 +0200 Subject: [PATCH] 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. --- eclass/python-utils-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.26.2