-
Since Arch Linux removed Python 2 from its official repository, we need to use AUR scripts. Build
python2from AUR. Note that there's one failed test (test_gdbm), but it should be fine with--nocheck. -
Build
python2-cffi,python2-setuptools,python2-pycparser,python2-plyfrom AUR. -
Use
pypy-bootstrap-riscv64.patchbelow to build first version ofpypyon riscv64 with something like:$ pwd .../archriscv/pypy/repos/community-x86_64 $ extra-riscv64-build -- -d "/tmp/pkgcache:/var/cache/pacman/pkg/" \ -I ../../../python2/python2-2.7.18-8-riscv64.pkg.tar.zst \ -I ../../../python2-cffi/python2-cffi-1.15.0-3-riscv64.pkg.tar.zst \ -I ../../../python2-pycparser/python2-pycparser-2.21-1-any.pkg.tar.zst \ -I ../../../python2-ply/python2-ply-3.11-1-any.pkg.tar.zst \ -I ../../../python2-setuptools/python2-setuptools-2:44.1.1-2-any.pkg.tar.zst -
From now on, PyPy can now build itself. Use
pypy-riscv64.patchbelow for future versions.
Newly added build flags are taken from Debian's pypy3 translating script. Without those, PyPy refuses to build.
I've also tried building pypy3 from pypy. It builds fine with original Arch tweaks disabled (see pypy3-riscv64.patch below). I wonder if it is building with its vendored dependencies? (I didn't find that matching string in pypy/goal/targetpypystandalone.py)