diff options
Diffstat (limited to 'dev-python/pypy3-exe/pypy3-exe-7.3.2_p37.ebuild')
-rw-r--r-- | dev-python/pypy3-exe/pypy3-exe-7.3.2_p37.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.2_p37.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.2_p37.ebuild index ab30f5451bf1..652138b7c823 100644 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.2_p37.ebuild +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.2_p37.ebuild @@ -32,10 +32,7 @@ BDEPEND=" !low-memory? ( || ( dev-python/pypy - ( - dev-lang/python:2.7 - dev-python/pycparser[python_targets_python2_7(-),python_single_target_python2_7(+)] - ) + dev-lang/python:2.7 ) )" @@ -130,8 +127,16 @@ src_configure() { "${EPYTHON}" --jit loop_longevity=300 ) fi + 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 + local -x PYTHONPATH=${T}/pymod:${PYTHONPATH} + fi + # translate into the C sources - # we're going to make them ourselves since otherwise pypy does not + # we're going to build them ourselves since otherwise pypy does not # free up the unneeded memory before spawning the compiler set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}" echo -e "\033[1m${@}\033[0m" |