Skip to content

Commit 0ca31c5

Browse files
Merge pull request #84 from kate-goldenring/remove-componentize-py-version
fix: remove outdated componentize-py version
2 parents e3a305a + c51eafa commit 0ca31c5

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

content/v3/python-components.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ url = "https://github.com/spinframework/spin-docs/blob/main/content/v3/python-co
66

77
---
88
- [Prerequisite](#prerequisite)
9-
- [Componentize-Py](#componentize-py)
109
- [Spin's Python HTTP Request Handler Template](#spins-python-http-request-handler-template)
1110
- [Creating a New Python Component](#creating-a-new-python-component)
1211
- [System Housekeeping (Use a Virtual Environment)](#system-housekeeping-use-a-virtual-environment)
@@ -45,18 +44,6 @@ python3 --version
4544

4645
If you do not have Python 3.10 or later, you can install it by following the instructions [here](https://www.python.org/downloads/).
4746

48-
## Componentize-Py
49-
50-
The Python SDK is built using [`componentize-py`](https://github.com/bytecodealliance/componentize-py). It is a [Bytecode Alliance](https://bytecodealliance.org/) project that allows converting a Python application to a WebAssembly component. It can be installed using the following command:
51-
52-
<!-- @selectiveCpy -->
53-
54-
```bash
55-
$ pip3 install componentize-py==0.13.3
56-
```
57-
58-
> **Please note:** The `hello-world` sample below installs `componentize-py` automatically via the `pip3 install -r requirements.txt` command - so feel free to skip this step if you are following the `hello-world` sample with us.
59-
6047
## Spin's Python HTTP Request Handler Template
6148

6249
Spin's Python HTTP Request Handler Template can be installed from [spin-python-sdk repository](https://github.com/spinframework/spin-python-sdk/tree/main/) using the following command:
@@ -140,20 +127,12 @@ The `(venv-dir)` will prefix your terminal prompt now:
140127

141128
### Requirements
142129

143-
The `requirements.txt`, by default, contains the references to the `spin-sdk` and `componentize-py` packages. These can be installed in your virtual environment using the following command:
130+
The `requirements.txt`, by default, contains the references to the `spin-sdk` and [`componentize-py`](https://github.com/bytecodealliance/componentize-py) packages. These can be installed in your virtual environment using the following command:
144131

145132
<!-- @selectiveCpy -->
146133

147134
```bash
148135
$ pip3 install -r requirements.txt
149-
Collecting spin-sdk==3.1.0 (from -r requirements.txt (line 1))
150-
Using cached spin_sdk-3.1.0-py3-none-any.whl.metadata (16 kB)
151-
Collecting componentize-py==0.13.3 (from -r requirements.txt (line 2))
152-
Using cached componentize_py-0.13.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata (3.4 kB)
153-
Using cached spin_sdk-3.1.0-py3-none-any.whl (94 kB)
154-
Using cached componentize_py-0.13.3-cp37-abi3-macosx_10_12_x86_64.whl (38.8 MB)
155-
Installing collected packages: spin-sdk, componentize-py
156-
Successfully installed componentize-py-0.13.3 spin-sdk-3.1.0
157136
```
158137

159138
## Structure of a Python Component

0 commit comments

Comments
 (0)