projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea1d100
)
python-utils-r1.eclass: Add additional .opt-1 compilation for py3.5+
author
Michał Górny
<mgorny@gentoo.org>
Sun, 5 Jun 2016 07:16:52 +0000
(09:16 +0200)
committer
Michał Górny
<mgorny@gentoo.org>
Mon, 6 Jun 2016 19:40:30 +0000
(21:40 +0200)
eclass/python-utils-r1.eclass
patch
|
blob
|
history
diff --git
a/eclass/python-utils-r1.eclass
b/eclass/python-utils-r1.eclass
index 0f9b58f6fce5a83e274ceed5c68f2e12a6f5de3c..717123cc5f96f844fe62bf6368ab23818400b918 100644
(file)
--- a/
eclass/python-utils-r1.eclass
+++ b/
eclass/python-utils-r1.eclass
@@
-640,8
+640,14
@@
python_optimize() {
instpath=/${instpath##/}
case "${EPYTHON}" in
+ python2.7|python3.[34])
+ "${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}"
+ "${PYTHON}" -OO -m compileall -q -f -d "${instpath}" "${d}"
+ ;;
python*)
+ # 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}"
"${PYTHON}" -OO -m compileall -q -f -d "${instpath}" "${d}"
;;
*)