commit:     534369f45a07089970f310a90978057da74504eb
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 22:56:23 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 22:58:59 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=534369f4

dev-python/pycparser: ensure modules are compiled

Package-Manager: Portage-2.3.79_p3, Repoman-2.3.18_p2
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 ...{pycparser-2.19.ebuild => pycparser-2.19-r1.ebuild} | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/dev-python/pycparser/pycparser-2.19.ebuild 
b/dev-python/pycparser/pycparser-2.19-r1.ebuild
similarity index 76%
rename from dev-python/pycparser/pycparser-2.19.ebuild
rename to dev-python/pycparser/pycparser-2.19-r1.ebuild
index 3f40a0e4ed7..3b8d5a5df7d 100644
--- a/dev-python/pycparser/pycparser-2.19.ebuild
+++ b/dev-python/pycparser/pycparser-2.19-r1.ebuild
@@ -32,18 +32,14 @@ python_prepare_all() {
        distutils-r1_python_prepare_all
 }
 
-python_compile() {
-       distutils-r1_python_compile
-
-       # note: tables built by py3.5+ are incompatible with older versions
-       # because of 100 group limit of 're' module -- just generate them
-       # separately optimized for each target instead
-       pushd "${BUILD_DIR}"/lib/pycparser > /dev/null || die
-       "${PYTHON}" _build_tables.py || die
-       popd > /dev/null || die
-}
-
 python_test() {
        # change workdir to avoid '.' import
        nosetests -v -w tests || die
 }
+
+python_install() {
+       distutils-r1_python_install
+
+       # setup.py generates {c_ast,lextab,yacctab}.py with bytecode disabled.
+       python_optimize
+}

Reply via email to