summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-11-17 17:56:23 -0500
committerMike Gilbert <floppym@gentoo.org>2019-11-17 17:58:59 -0500
commit534369f45a07089970f310a90978057da74504eb (patch)
tree931c0beea9fe10c7ef3ff58c19a115c358c83a2c /dev-python/pycparser
parentdev-libs/busybee: drop old EAPI (diff)
downloadgentoo-534369f45a07089970f310a90978057da74504eb.tar.gz
gentoo-534369f45a07089970f310a90978057da74504eb.tar.bz2
gentoo-534369f45a07089970f310a90978057da74504eb.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/pycparser')
-rw-r--r--dev-python/pycparser/pycparser-2.19-r1.ebuild (renamed from dev-python/pycparser/pycparser-2.19.ebuild)18
1 files changed, 7 insertions, 11 deletions
diff --git a/dev-python/pycparser/pycparser-2.19.ebuild b/dev-python/pycparser/pycparser-2.19-r1.ebuild
index 3f40a0e4ed73..3b8d5a5df7df 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
+}