python-utils-r1.eclass: python_optimize, enable py3.5 logic for pypy3
authorMichał Górny <mgorny@gentoo.org>
Sun, 30 Apr 2017 16:28:11 +0000 (18:28 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 30 Apr 2017 19:22:05 +0000 (21:22 +0200)
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

index 49a605b9e15962482cd78dbe766aadd6bcc2cfaa..66a359e8daee43b098c537d116d780d73be44d2b 100644 (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}"