Emscripten compatible build script 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.
The created .wasm
files can be imported by WasmPy in a simmilar manner to native C extensions.
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 and 3.9 but I'm hoping to add support for older versions.
Installation
To install WasmPy-Build you will first need to install the Emscripten SDK.
Install WasmPy-Build from pip
$ pip install wasmpy-build
... or build from source
$ git clone https://github.com/r-james-dev/wasmpy-build
$ cd wasmpy-build
$ python3 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.1.1.tar.gz
(365.7 kB
view hashes)
Built Distribution
wasmpy_build-0.1.1-py3-none-any.whl
(474.3 kB
view hashes)
Close
Hashes for wasmpy_build-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ecba146754276198a2e810c72dc48932130b913b3649c0888ecca5d484d2c0 |
|
MD5 | d21cb73e38c829be7ce29ce82bc9da4a |
|
BLAKE2b-256 | 681d2112e535bfb468c62de14dbd276c7137237305430309689ee347a3dcf21d |