From 7e2f4e57d797f7d5d200fc0545e7377cf3f4add1 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 24 Nov 2022 20:54:32 +0100 Subject: dev-python/pypy3-exe: Stop using python-any-r1 and CPython 2.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stop using python-any-r1.eclass to unblock the way towards removing python2_7 support from it. Remove support for translation using CPython 2.7, require dev-python/pypy unconditionally. Signed-off-by: Michał Górny --- dev-python/pypy3-exe/pypy3-exe-7.3.10_rc3.ebuild | 44 ++++-------------------- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.10_rc3.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.10_rc3.ebuild index 805ec9fcf901..6df29312cc6a 100644 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.10_rc3.ebuild +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.10_rc3.ebuild @@ -3,9 +3,7 @@ EAPI=8 -# pypy3 needs to be built using python 2 -PYTHON_COMPAT=( python2_7 ) -inherit check-reqs pax-utils python-any-r1 toolchain-funcs +inherit check-reqs pax-utils toolchain-funcs PYPY_PV=${PV%_p*} MY_P=pypy3.9-v${PYPY_PV/_} @@ -37,13 +35,7 @@ DEPEND=" ${RDEPEND} " BDEPEND=" - low-memory? ( dev-python/pypy ) - !low-memory? ( - || ( - dev-python/pypy - dev-lang/python:2.7 - ) - ) + dev-python/pypy " check_env() { @@ -63,24 +55,7 @@ pkg_pretend() { } pkg_setup() { - if [[ ${MERGE_TYPE} != binary ]]; then - check_env - - # unset to allow forcing pypy below :) - use low-memory && EPYTHON= - if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] && - { has_version -b dev-python/pypy || - has_version -b dev-python/pypy-bin; } - then - einfo "Using PyPy to perform the translation." - EPYTHON=pypy - else - einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream" - einfo "recommends using PyPy for that. If you wish to do so, please install" - einfo "dev-python/pypy and ensure that EPYTHON variable is unset." - python-any-r1_pkg_setup - fi - fi + [[ ${MERGE_TYPE} != binary ]] && check_env } src_prepare() { @@ -124,17 +99,10 @@ src_configure() { $(usex ncurses --with{,out}mod-_minimal_curses) ) - local interp=( "${EPYTHON}" ) + local interp=( pypy ) if use low-memory; then - interp=( env PYPY_GC_MAX_DELTA=200MB - "${EPYTHON}" --jit loop_longevity=300 ) - fi - - if [[ ${EPYTHON} != pypy ]]; then - # reuse bundled pycparser to avoid external dep - mkdir -p "${T}"/pymod || die - cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/pycparser || die - local -x PYTHONPATH=${T}/pymod:${PYTHONPATH} + local -x PYPY_GC_MAX_DELTA=200MB + interp+=( --jit loop_longevity=300 ) fi # translate into the C sources -- cgit v1.2.3-65-gdbad