commit: 778d3a3db25ea46f74de61b789adcfaff98d53f8 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Feb 22 11:03:11 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Feb 22 11:54:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778d3a3d
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 <AT> gentoo.org> dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild index 8c18a537ee0f..259314b5d362 100644 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild @@ -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
