summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-04-30 18:28:11 +0200
committerMichał Górny <mgorny@gentoo.org>2017-04-30 21:22:05 +0200
commitb7648fc3e5dff19eff932645c26d45f195521b13 (patch)
treef782413b3bb53f0babc16233a1713ff5f4703e74 /eclass
parentdev-python/pypy3-bin: Port -OO builds patch from python3.5 (diff)
downloadgentoo-b7648fc3e5dff19eff932645c26d45f195521b13.tar.gz
gentoo-b7648fc3e5dff19eff932645c26d45f195521b13.tar.bz2
gentoo-b7648fc3e5dff19eff932645c26d45f195521b13.zip
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.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python-utils-r1.eclass2
1 files changed, 1 insertions, 1 deletions
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}"