Skip to content

Commit 730fd82

Browse files
agriyakhetarpalryanking13bollwyvl
authored
Add PYEMSCRIPTEN_ABI_WHL (#277)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com> Co-authored-by: Nicholas Bollweg <bollwyvl@users.noreply.github.com>
1 parent 98cd4bd commit 730fd82

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

jupyterlite_pyodide_kernel/constants.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
DISABLE_PYPI_FALLBACK = "disablePyPIFallback"
77
#: the schema for piplite-compatible wheel index
88
PIPLITE_INDEX_SCHEMA = "piplite.v0.schema.json"
9-
#: the schema for piplite-compatible wheel index
9+
#: the schema for the Pyodide kernel settings
1010
KERNEL_SETTINGS_SCHEMA = "kernel.v0.schema.json"
1111
#: where we put wheels, for now
1212
PYPI_WHEELS = "pypi"
13-
#: the plugin id for the Pydodide kernel labextension
13+
#: the plugin id for the Pyodide kernel labextension
1414
PYODIDE_KERNEL_PLUGIN_ID = "@jupyterlite/pyodide-kernel-extension:kernel"
1515
#: the npm name of the Pyodide kernel
1616
PYODIDE_KERNEL_NPM_NAME = PYODIDE_KERNEL_PLUGIN_ID.split(":")[0]
@@ -19,10 +19,10 @@
1919
#: the package.json/piplite key for wheels
2020
PKG_JSON_WHEELDIR = "wheelDir"
2121

22-
#: where we put wheels, for now
22+
#: the jupyter-lite.json config key for the Pyodide base URL
2323
PYODIDE_URL = "pyodideUrl"
2424

25-
#: where we put pyodide, for now
25+
#: directory name and filenames for the Pyodide distribution
2626
PYODIDE = "pyodide"
2727
PYODIDE_JS = "pyodide.js"
2828
PYODIDE_LOCK = "pyodide-lock.json"
@@ -34,15 +34,19 @@
3434
#: the only kind of noarch wheel piplite understands
3535
NOARCH_WHL = "py3-none-any.whl"
3636

37-
#: the only kind of binary wheel piplite previously understood
37+
#: [pyodide <0.26] Emscripten platform tag (emscripten_*_wasm32)
3838
EMSCRIPTEN_ABI_WHL = "emscripten_*_wasm32.whl"
3939

40-
#: legacy variable alias
40+
#: variable alias for EMSCRIPTEN_ABI_WHL
4141
WASM_WHL = EMSCRIPTEN_ABI_WHL
4242

43-
#: the Pyodide ABI wheel is the same as the Emscripten
44-
#: ABI wheel, but with a different platform tag, i.e.,
45-
# YYYY_buildnumber.
43+
#: [pyodide <0.30] [micropip <0.11.1] Pyodide platform tag (pyodide_*_wasm32)
4644
PYODIDE_ABI_WHL = "pyodide_*_wasm32.whl"
4745

48-
ALL_WHL = [NOARCH_WHL, WASM_WHL, PYODIDE_ABI_WHL]
46+
#: [pyodide >=0.30] [micropip >=0.11.1] PEP 783 platform tag (pyemscripten_*_wasm32)
47+
#: See: https://peps.python.org/pep-0783/
48+
#: https://pyodide.org/en/stable/development/abi.html
49+
PYEMSCRIPTEN_ABI_WHL = "pyemscripten_*_wasm32.whl"
50+
51+
#: all wheel filename patterns recognised by the piplite addon
52+
ALL_WHL = [NOARCH_WHL, WASM_WHL, PYODIDE_ABI_WHL, PYEMSCRIPTEN_ABI_WHL]

0 commit comments

Comments
 (0)