Skip to content

Commit

Permalink
Merge pull request #190 from dicej/patch-1
Browse files Browse the repository at this point in the history
Tweak python.md to indicate optional `wasmtime-py` compatibility
  • Loading branch information
kate-goldenring authored Jan 14, 2025
2 parents c32350f + b9f2d21 commit ff4c353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component-model/src/language-support/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Component built successfully
Wasm components can also be invoked from Python applications. This walks through using tooling
to call the [`app.wasm` component from the examples](../../examples/example-host/add.wasm).

> `wasmtime-py` does not currently support running components build with `componentize-py`. This is because `wasmtime-py` does not yet support [resources](../design/wit.md#resources), which components built with `componentize-py` always use, since `componentize-py` unconditionally imports most of the `wasi:cli` world.
> `wasmtime-py` is only able to run components built with `componentize-py` when the `--stub-wasi` option is used at build time. This is because `wasmtime-py` does not yet support [resources](../design/wit.md#resources), which components built with `componentize-py` use by default by generating components which import most of the `wasi:cli` world. See [this example](https://github.com/bytecodealliance/componentize-py/tree/main/examples/sandbox) of using the `--stub-wasi` option to generate a `wasmtime-py`-compatible component.
First, install [Python 3.11 or later](https://www.python.org/) and [pip](https://pypi.org/project/pip/) if you don't already have them. Then, install [`wasmtime-py`](https://github.com/bytecodealliance/wasmtime-py):

Expand Down

0 comments on commit ff4c353

Please sign in to comment.