dev-python/pypy3-exe: Fix translating with python2.7

Copy the temporary cffi._pycparser module into "pycparser".  For some
reason, when RPython imports it as "cffi._pycparser" rather
than "pycparser", it creates humongous regexps that hit Python 2.7's
group limit.  Magic.

Closes: https://bugs.gentoo.org/833816
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-02-22 12:03:11 +01:00
parent 0022435d47
commit 778d3a3db2

View File

@@ -139,9 +139,8 @@ src_configure() {
if [[ ${EPYTHON} != pypy ]]; then
# reuse bundled pycparser to avoid external dep
mkdir -p "${T}"/pymod/cffi || die
: > "${T}"/pymod/cffi/__init__.py || die
cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/cffi/ || die
mkdir -p "${T}"/pymod || die
cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/pycparser || die
local -x PYTHONPATH=${T}/pymod:${PYTHONPATH}
fi