Files
wasmtime/crates/misc/py
Yury Delendik ea56118651 Add/use create_wasi_instance() instead of instantiate_wasi(). (#571)
* Add/use create_wasi_instance() instead of instantiate_wasi().

* rm Result from Instance::from_handle
2019-11-15 16:48:05 -08:00
..
2019-11-08 06:35:40 -08:00
2019-11-08 06:35:40 -08:00
2019-11-08 06:35:40 -08:00
2019-11-08 06:35:40 -08:00
2019-11-08 06:35:40 -08:00

Python 3 extension for interface with Wasmtime/Cranelift.

Build

First, you'll need to install some Python dependencies:

$ pip3 install setuptools wheel==0.31.1 setuptools-rust

Next you can build the extension with:

rustup run nightly python3 setup.py build

Note that a nightly version of Rust is required due to our usage of PyO3.

This will create a directory called build/lib which you can add to PYTHONPATH in order to get import wasmtime working.