WebAssembly build tool for CPython C extensions
Project description
wasmpy-build
This tool can compile CPython C extension files, such as the ones created by Cython, to WebAssembly so that the extensions are platform independent.
This project contains modified CPython header files as well as a build script to ease the creation of .wasm
extension files.
Currently this project only supports CPython 3.8, 3.9, 3.10 and 3.11 but I'm hoping to add support for older and future versions.
The project will automatically download wasi-sdk on first use.
Installation
Install from pip
pip install wasmpy-build
or build from source
git clone --recurse-submodules https://github.com/olivi-r/wasmpy-build
cd wasmpy-build
python -m pip install -r requirements.txt
python patch_headers.py
python setup.py install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wasmpy-build-0.3.0.tar.gz
(761.1 kB
view hashes)
Built Distribution
wasmpy_build-0.3.0-py3-none-any.whl
(995.7 kB
view hashes)
Close
Hashes for wasmpy_build-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e0f9a4f268e0a0c7d52525c218b236fb136f5efb3e8227b498448313d99517 |
|
MD5 | 1251d3db68fc1b9c1d2730f33b4a751c |
|
BLAKE2b-256 | a858fc3d32c9189cad4186b952054bcd1eabff8ee4d9889b173255cd481efa5d |