projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265e3d0
)
python-utils-r1.eclass: python_optimize, enable py3.5 logic for pypy3
author
Michał Górny
<mgorny@gentoo.org>
Sun, 30 Apr 2017 16:28:11 +0000
(18:28 +0200)
committer
Michał 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
patch
|
blob
|
history
diff --git
a/eclass/python-utils-r1.eclass
b/eclass/python-utils-r1.eclass
index 49a605b9e15962482cd78dbe766aadd6bcc2cfaa..66a359e8daee43b098c537d116d780d73be44d2b 100644
(file)
--- 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}"