Skip to content

Commit 769c067

Browse files
authored
Merge pull request #47 from fermyon/canary-install-instructions
Add instructions for installing the canary build
2 parents cfd9a52 + 73590cd commit 769c067

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@
22

33
This is an experiment to build a Spin Python SDK using CPython, Wizer, and PyO3.
44

5-
## Installing the Plugin and Running Examples
5+
## Installing the Plugin
66

77
Use the following command to install the `py2wasm` plugin and then build the example Spin app:
88

9-
```
9+
```bash
1010
spin plugins update
1111
spin plugins install py2wasm
12+
```
13+
14+
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:
15+
16+
```bash
17+
spin plugins install --url https://github.com/fermyon/spin-python-sdk/releases/download/canary/py2wasm.json
18+
```
19+
20+
## Running Examples
21+
22+
After installing the plugin, you can run the examples found in this repo:
23+
24+
```bash
1225
cd examples/hello world
1326
spin build
1427
spin up
@@ -34,13 +47,13 @@ First, build CPython for wasm32-wasi.
3447

3548
Then, build the `spin-python-cli`:
3649

37-
```
50+
```bash
3851
make
3952
```
4053

4154
Finally, build and run the example app:
4255

43-
```
56+
```bash
4457
cd examples/hello_world
4558
$CARGO_TARGET_DIR/release/spin-python app -o app.wasm
4659
spin up

0 commit comments

Comments
 (0)