Brett Cannon said:
CPython 3.12.0 WASI build https://github.com/brettcannon/cpython-wasi-build/releases/tag/v3.12.0
any help on how I can link this so my pyo3 application compiles to wasi? I want to embed the libpython version
The build process is a bit complicated, but componentize-py's runtime
subcrate uses PyO3 and libpython3.11.so
(which itself requires a patched version of wasi-sdk/wasi-libc, so maybe not the best example at the moment). The other thing to look at is https://github.com/fermyon/spin-python-sdk, which uses PyO3, libpython3.11.a
and a stock wasi-sdk/wasi-libc.
I just realized pyo3 has no abi3-py312 yet anyway
yeah, might need to wait for that
Last updated: Dec 23 2024 at 12:05 UTC