1 |
commit: 534369f45a07089970f310a90978057da74504eb |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 17 22:56:23 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 17 22:58:59 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=534369f4 |
7 |
|
8 |
dev-python/pycparser: ensure modules are compiled |
9 |
|
10 |
Package-Manager: Portage-2.3.79_p3, Repoman-2.3.18_p2 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
...{pycparser-2.19.ebuild => pycparser-2.19-r1.ebuild} | 18 +++++++----------- |
14 |
1 file changed, 7 insertions(+), 11 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pycparser/pycparser-2.19.ebuild b/dev-python/pycparser/pycparser-2.19-r1.ebuild |
17 |
similarity index 76% |
18 |
rename from dev-python/pycparser/pycparser-2.19.ebuild |
19 |
rename to dev-python/pycparser/pycparser-2.19-r1.ebuild |
20 |
index 3f40a0e4ed7..3b8d5a5df7d 100644 |
21 |
--- a/dev-python/pycparser/pycparser-2.19.ebuild |
22 |
+++ b/dev-python/pycparser/pycparser-2.19-r1.ebuild |
23 |
@@ -32,18 +32,14 @@ python_prepare_all() { |
24 |
distutils-r1_python_prepare_all |
25 |
} |
26 |
|
27 |
-python_compile() { |
28 |
- distutils-r1_python_compile |
29 |
- |
30 |
- # note: tables built by py3.5+ are incompatible with older versions |
31 |
- # because of 100 group limit of 're' module -- just generate them |
32 |
- # separately optimized for each target instead |
33 |
- pushd "${BUILD_DIR}"/lib/pycparser > /dev/null || die |
34 |
- "${PYTHON}" _build_tables.py || die |
35 |
- popd > /dev/null || die |
36 |
-} |
37 |
- |
38 |
python_test() { |
39 |
# change workdir to avoid '.' import |
40 |
nosetests -v -w tests || die |
41 |
} |
42 |
+ |
43 |
+python_install() { |
44 |
+ distutils-r1_python_install |
45 |
+ |
46 |
+ # setup.py generates {c_ast,lextab,yacctab}.py with bytecode disabled. |
47 |
+ python_optimize |
48 |
+} |