From 4a40b79642748c3c0d4cc955e9981fb8babb85b3 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 18 Nov 2019 11:17:48 -0500 Subject: [PATCH] dev-python/pycparser: restore python_compile function Package-Manager: Portage-2.3.79_p3, Repoman-2.3.18_p2 Signed-off-by: Mike Gilbert --- dev-python/pycparser/pycparser-2.19-r1.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.26.2