Skip to content

Instantly share code, notes, and snippets.

View felixonmars's full-sized avatar

Felix Yan felixonmars

View GitHub Profile
@felixonmars
felixonmars / README.md
Created July 6, 2023 07:03 — forked from hack3ric/README.md
PyPy bootstrap for Arch Linux riscv64
  • Since Arch Linux removed Python 2 from its official repository, we need to use AUR scripts. Build [python2] from 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-ply] from AUR.

  • Use pypy-bootstrap-riscv64.patch below to build first version of pypy on riscv64 with something like:

    $ pwd
    .../archriscv/pypy/repos/community-x86_64
    

$ extra-riscv64-build -- -d "/tmp/pkgcache:/var/cache/pacman/pkg/" \