Skip to content

Commit

Permalink
Docs about CIBW_PYODIDE_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Nov 21, 2024
1 parent dff72ca commit 9a78845
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ Pre-requisite: you need to have a matching host version of Python (unlike all
other cibuildwheel platforms). Linux host highly recommended; macOS hosts may
work (e.g. invoking `pytest` directly in [`CIBW_TEST_COMMAND`](options.md#test-command) is [currently failing](https://github.com/pyodide/pyodide/issues/4802)) and Windows hosts will not work.

You must target pyodide with `--platform pyodide` (or use `--only` on the identifier).
You must target Pyodide with `--platform pyodide` (or use `--only` on the identifier).

!!!tip

It is also possible to target a specific Pyodide version by setting the `CIBW_PYODIDE_VERSION` environment variable to the desired version. Users are responsible for setting an appropriate Pyodide version according to the `pyodide-build` version. A list is available in Pyodide's [cross-build environments metadata file](https://github.com/pyodide/pyodide/blob/main/pyodide-cross-build-environments.json) or can be
referenced using the `pyodide xbuildenv search` command.

This option is **not available** in the `pyproject.toml` config.

## Configure a CI service

Expand Down

0 comments on commit 9a78845

Please sign in to comment.