File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 22
33This 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
77Use the following command to install the ` py2wasm ` plugin and then build the example Spin app:
88
9- ```
9+ ``` bash
1010spin plugins update
1111spin 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
1225cd examples/hello world
1326spin build
1427spin up
@@ -34,13 +47,13 @@ First, build CPython for wasm32-wasi.
3447
3548Then, build the ` spin-python-cli ` :
3649
37- ```
50+ ``` bash
3851make
3952```
4053
4154Finally, build and run the example app:
4255
43- ```
56+ ``` bash
4457cd examples/hello_world
4558$CARGO_TARGET_DIR /release/spin-python app -o app.wasm
4659spin up
You can’t perform that action at this time.
0 commit comments