WebAssembly build tool for CPython C/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 supports CPython 3.6 to 3.12.
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 generate.py
python -m pip install .
Usage
Pass the file with any extra arguments to the console scripts:
C
wasmpy-build my_file.c -o my_file.wasm
C++
wasmpy-build-cpp my_file.cpp -o my_file.wasm
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.5.1.tar.gz
(1.4 MB
view hashes)
Built Distribution
Close
Hashes for wasmpy_build-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c08e03b74aead48c420ccfef19c2207d048699b68b3461902553232883bc0c9 |
|
MD5 | 49fdc0005104493df03c1e217c3aed7d |
|
BLAKE2b-256 | 34b1219f5cfafdf2539f6ed7b6df727133768cab37adb2e04226f7700c237fa1 |