@@ -20,12 +20,6 @@ toolchain. It compiles C/C++ code into WebAssembly/JavaScript executables, for
2020use in JavaScript runtimes, including browsers and Node.js. The Rust language
2121also maintains an Emscripten target.
2222
23- The goals of this PEP are:
24-
25- 1. To describe Pyodide's packaging tooling
26- 2. To describe Pyodide's wheel abi to a similar level of detail as the manylinux
27- PEPs
28- 3. For Pyodide wheels to be allowed for upload to PyPI
2923
3024
3125
@@ -88,9 +82,11 @@ ABI-sensitive flags.
8882Specification
8983=============
9084
91- The platform tags will take the form::
85+ The platform tags will take the form:
86+
87+ .. code-block :: text
9288
93- pyodide_${YEAR}_${PATCH}_wasm32
89+ pyodide_${YEAR}_${PATCH}_wasm32
9490
9591 Each one of these will be used with a specified Python version. For example, the
9692platform tag ``pyodide_2025_0 `` will be used with Python 3.13.
@@ -125,12 +121,16 @@ Determining the ABI version
125121---------------------------
126122
127123The Pyodide ABI version is stored in the ``PYODIDE_ABI_VERSION `` config variable
128- and can be determined via::
124+ and can be determined via:
125+
126+ .. code-block :: python
127+
128+ pyodide_abi_version = sysconfig.get_config_var(" PYODIDE_ABI_VERSION" )
129129
130- pyodide_abi_version = sysconfig.get_config_var("PYODIDE_ABI_VERSION")
131130
131+ To generate the list of compatible tags, one can use the following code:
132132
133- To generate the list of compatible tags, one can use the following code::
133+ .. code-block :: python
134134
135135 from packaging.tags import cpython_tags, _generic_platforms
136136
0 commit comments