Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypy3-exe/
Date: Tue, 22 Feb 2022 11:54:42
Message-Id: 1645530875.778d3a3db25ea46f74de61b789adcfaff98d53f8.mgorny@gentoo
1 commit: 778d3a3db25ea46f74de61b789adcfaff98d53f8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 22 11:03:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 22 11:54:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778d3a3d
7
8 dev-python/pypy3-exe: Fix translating with python2.7
9
10 Copy the temporary cffi._pycparser module into "pycparser". For some
11 reason, when RPython imports it as "cffi._pycparser" rather
12 than "pycparser", it creates humongous regexps that hit Python 2.7's
13 group limit. Magic.
14
15 Closes: https://bugs.gentoo.org/833816
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17
18 dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild | 5 ++---
19 1 file changed, 2 insertions(+), 3 deletions(-)
20
21 diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild
22 index 8c18a537ee0f..259314b5d362 100644
23 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild
24 +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild
25 @@ -139,9 +139,8 @@ src_configure() {
26
27 if [[ ${EPYTHON} != pypy ]]; then
28 # reuse bundled pycparser to avoid external dep
29 - mkdir -p "${T}"/pymod/cffi || die
30 - : > "${T}"/pymod/cffi/__init__.py || die
31 - cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/cffi/ || die
32 + mkdir -p "${T}"/pymod || die
33 + cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/pycparser || die
34 local -x PYTHONPATH=${T}/pymod:${PYTHONPATH}
35 fi