uv/docs/reference
Jo Shields f76e0fe5e6
Add --python-platform riscv64-unknown-linux to various commands (#15630)
## Summary

We (and I'm sure many others) are currently doing a lot of RISC-V work
in QEMU. It is possible to significantly improve the speed of
Python-related builds by taking care of the environment setup using an
AMD64 `uv` binary (bypassing binfmt/qemu-system emulation).

Some approx numbers from local testing in riscv64 Ubuntu in QEMU:

| Resolver arch | Command | Time |
| --- | --- | --- |
| riscv64 | `pip install --upgrade --break-system-packages
--index-url=https://gitlab.com/api/v4/projects/riseproject%2Fpython%2Fwheel_builder/packages/pypi/simple
openai-harmony` | 15s |
| riscv64 | `uv pip install --upgrade --system --break-system-packages
--index-url=https://gitlab.com/api/v4/projects/riseproject%2Fpython%2Fwheel_builder/packages/pypi/simple
openai-harmony` | 5s |
| amd64 | `uv pip install --python-platform=riscv64-unknown-linux
--upgrade --system --break-system-packages
--index-url=https://gitlab.com/api/v4/projects/riseproject%2Fpython%2Fwheel_builder/packages/pypi/simple
openai-harmony` | 4s |

The numbers from some larger internal packages with deeper dependency
trees are much more pronounced - 3m6 vs 43s vs 8s, in one example.

Manylinux 2.39 is specified, as it's the first (only?) RISC-V manylinux

## Test Plan

Locally, in QEMU.

`$ docker run --platform linux/riscv64 -it ubuntu:latest`, get amd64
libc into LD_LIBRARY_PATH, tests as above
2025-09-02 13:17:30 -04:00
..
internals Move Resolver to new Internals section in the Reference (#15465) 2025-08-22 19:26:16 -05:00
policies Add 3.14 to the supported platform reference (#13990) 2025-06-12 15:18:48 +00:00
troubleshooting Fix and improve docs (#13620) 2025-06-10 13:15:38 -05:00
benchmarks.md Add link to benchmarks in documentation (#6257) 2024-08-20 12:54:46 -04:00
cli.md Add --python-platform riscv64-unknown-linux to various commands (#15630) 2025-09-02 13:17:30 -04:00
environment.md Allow pinning managed Python versions to specific build versions (#15314) 2025-08-25 16:25:05 -05:00
index.md Move Resolver to new Internals section in the Reference (#15465) 2025-08-22 19:26:16 -05:00
installer.md Add UV_ prefix to installer environment variables (#14964) 2025-07-30 01:24:59 +00:00
settings.md Fix settings rendering for extra-build-dependencies (#15622) 2025-09-02 09:06:21 -04:00