From 534369f45a07089970f310a90978057da74504eb Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 17 Nov 2019 17:56:23 -0500 Subject: [PATCH] dev-python/pycparser: ensure modules are compiled Package-Manager: Portage-2.3.79_p3, Repoman-2.3.18_p2 Signed-off-by: Mike Gilbert --- ...er-2.19.ebuild => pycparser-2.19-r1.ebuild} | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) rename dev-python/pycparser/{pycparser-2.19.ebuild => pycparser-2.19-r1.ebuild} (76%) 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 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 +} -- 2.26.2