mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user