Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions 06-vendoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,28 @@ First, install Python3.12 and pip for Python 3.12.

*Currently, other versions of Python will not work - use 3.12!*

The easiest way to install Python 3.12 is using uv, so install it by following
https://docs.astral.sh/uv/getting-started/installation/.

Then run:

```console
uv python install 3.12
```

Then create a virtual environment and activate it from your shell:

```console
python3.12 -m venv .venv
source .venv/bin/activate
uv venv -p 3.12
# activate the venv using the command `uv` has given you
# usually `source .venv/bin/activate` or `.venv\Scripts\activate`
```

Within our virtual environment, install the pyodide CLI:

```console
.venv/bin/pip install pyodide-build
.venv/bin/pyodide venv .venv-pyodide
uv pip install pyodide-build
.\.venv\Scripts\pyodide.exe venv .venv-pyodide
```

Next, add packages to your vendor.txt file. Here we'll add jinja2
Expand Down