summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-11-18 11:17:48 -0500
committerMike Gilbert <floppym@gentoo.org>2019-11-18 11:17:48 -0500
commit4a40b79642748c3c0d4cc955e9981fb8babb85b3 (patch)
tree03c3f1e0a1923ee1e6b195fb4b15249b8483d820 /dev-python/pycparser
parentsci-geosciences/qgis: amd64 stable wrt bug #700040 (diff)
downloadgentoo-4a40b79642748c3c0d4cc955e9981fb8babb85b3.tar.gz
gentoo-4a40b79642748c3c0d4cc955e9981fb8babb85b3.tar.bz2
gentoo-4a40b79642748c3c0d4cc955e9981fb8babb85b3.zip
dev-python/pycparser: restore python_compile function
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.ebuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/pycparser/pycparser-2.19-r1.ebuild b/dev-python/pycparser/pycparser-2.19-r1.ebuild
index 3b8d5a5df7df..18ac75c43138 100644
--- a/dev-python/pycparser/pycparser-2.19-r1.ebuild
+++ b/dev-python/pycparser/pycparser-2.19-r1.ebuild
@@ -32,6 +32,17 @@ 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