1 |
commit: b7648fc3e5dff19eff932645c26d45f195521b13 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 30 16:28:11 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 30 19:22:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7648fc3 |
7 |
|
8 |
python-utils-r1.eclass: python_optimize, enable py3.5 logic for pypy3 |
9 |
|
10 |
Enable the three-level optimization logic for pypy3, to account for |
11 |
pypy3-5.7 being based on CPython 3.5 and using all three suffixes. |
12 |
|
13 |
eclass/python-utils-r1.eclass | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
17 |
index 49a605b9e15..66a359e8dae 100644 |
18 |
--- a/eclass/python-utils-r1.eclass |
19 |
+++ b/eclass/python-utils-r1.eclass |
20 |
@@ -660,7 +660,7 @@ python_optimize() { |
21 |
"${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}" |
22 |
"${PYTHON}" -OO -m compileall -q -f -d "${instpath}" "${d}" |
23 |
;; |
24 |
- python*) |
25 |
+ python*|pypy3) |
26 |
# both levels of optimization are separate since 3.5 |
27 |
"${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}" |
28 |
"${PYTHON}" -O -m compileall -q -f -d "${instpath}" "${d}" |