From 73590cd4f7b4eb2891e8ddbb70c886996e7b9689 Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Fri, 14 Jul 2023 16:22:31 +0200 Subject: [PATCH] Add instructions for installing the canary build Signed-off-by: Ryan Levick --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index de45a79..de96b84 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,26 @@ This is an experiment to build a Spin Python SDK using CPython, Wizer, and PyO3. -## Installing the Plugin and Running Examples +## Installing the Plugin Use the following command to install the `py2wasm` plugin and then build the example Spin app: -``` +```bash spin plugins update spin plugins install py2wasm +``` + +If you'd like to try out the latest features, you can use the following command to install the *unstable* canary version of the plugin: + +```bash +spin plugins install --url https://github.com/fermyon/spin-python-sdk/releases/download/canary/py2wasm.json +``` + +## Running Examples + +After installing the plugin, you can run the examples found in this repo: + +```bash cd examples/hello world spin build spin up @@ -34,13 +47,13 @@ First, build CPython for wasm32-wasi. Then, build the `spin-python-cli`: -``` +```bash make ``` Finally, build and run the example app: -``` +```bash cd examples/hello_world $CARGO_TARGET_DIR/release/spin-python app -o app.wasm spin up