cibuildwheel icon indicating copy to clipboard operation
cibuildwheel copied to clipboard

Support wasm32-wasi

Open broodroosterdev opened this issue 1 year ago • 1 comments

Description

As of Python 3.13, the wasm32-wasi target is a tier 2 platform: https://peps.python.org/pep-0011/#tier-2 What would be needed for wasm32-wasi to be supported by this project?

I am trying to use certain packages that use this project to build python dynamic modules, and having wasm32-wasi support would help these packages become wasm32-wasi compatible.

Thank you for your help 😄

Build log

No response

CI config

No response

broodroosterdev avatar Nov 29 '24 15:11 broodroosterdev

WASI doesn't support dynamic linking, so you literally cannot build "dynamic modules". The only way to "use" a binary package is to create a customized Python build with all your .so files combined into a single component. This may change in a few years, but for now, this is all we have, and it's really far from the "wheel" model (and makes 'pip' like workflows impossible).

See https://github.com/dicej/wasi-wheels and https://github.com/dicej/wasi-wheels/issues/4 is helpful.

henryiii avatar Nov 30 '24 06:11 henryiii