|
6 | 6 | DISABLE_PYPI_FALLBACK = "disablePyPIFallback" |
7 | 7 | #: the schema for piplite-compatible wheel index |
8 | 8 | PIPLITE_INDEX_SCHEMA = "piplite.v0.schema.json" |
9 | | -#: the schema for piplite-compatible wheel index |
| 9 | +#: the schema for the Pyodide kernel settings |
10 | 10 | KERNEL_SETTINGS_SCHEMA = "kernel.v0.schema.json" |
11 | 11 | #: where we put wheels, for now |
12 | 12 | PYPI_WHEELS = "pypi" |
13 | | -#: the plugin id for the Pydodide kernel labextension |
| 13 | +#: the plugin id for the Pyodide kernel labextension |
14 | 14 | PYODIDE_KERNEL_PLUGIN_ID = "@jupyterlite/pyodide-kernel-extension:kernel" |
15 | 15 | #: the npm name of the Pyodide kernel |
16 | 16 | PYODIDE_KERNEL_NPM_NAME = PYODIDE_KERNEL_PLUGIN_ID.split(":")[0] |
|
19 | 19 | #: the package.json/piplite key for wheels |
20 | 20 | PKG_JSON_WHEELDIR = "wheelDir" |
21 | 21 |
|
22 | | -#: where we put wheels, for now |
| 22 | +#: the jupyter-lite.json config key for the Pyodide base URL |
23 | 23 | PYODIDE_URL = "pyodideUrl" |
24 | 24 |
|
25 | | -#: where we put pyodide, for now |
| 25 | +#: directory name and filenames for the Pyodide distribution |
26 | 26 | PYODIDE = "pyodide" |
27 | 27 | PYODIDE_JS = "pyodide.js" |
28 | 28 | PYODIDE_LOCK = "pyodide-lock.json" |
|
34 | 34 | #: the only kind of noarch wheel piplite understands |
35 | 35 | NOARCH_WHL = "py3-none-any.whl" |
36 | 36 |
|
37 | | -#: the only kind of binary wheel piplite previously understood |
| 37 | +#: [pyodide <0.26] Emscripten platform tag (emscripten_*_wasm32) |
38 | 38 | EMSCRIPTEN_ABI_WHL = "emscripten_*_wasm32.whl" |
39 | 39 |
|
40 | | -#: legacy variable alias |
| 40 | +#: variable alias for EMSCRIPTEN_ABI_WHL |
41 | 41 | WASM_WHL = EMSCRIPTEN_ABI_WHL |
42 | 42 |
|
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) |
46 | 44 | PYODIDE_ABI_WHL = "pyodide_*_wasm32.whl" |
47 | 45 |
|
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