mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user