Skip to content

Commit 2c300e3

Browse files
authored
Merge pull request #4 from pathsim/feat/pyodide-compat
Document Pyodide compatibility marker convention
2 parents 4a73bbb + d0252ca commit 2c300e3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ dependencies = [
3030
"numpy>=1.15",
3131
"scipy>=1.2",
3232
"scikit-rf>=0.30",
33+
# If a dependency ships native code that can't be installed in Pyodide,
34+
# tag it with `; sys_platform != 'emscripten'` so a normal pip install
35+
# still pulls it eagerly but micropip in the browser skips it. Pair
36+
# this with a defensive re-export in `pathsim_rf/__init__.py`
37+
# (the `.network` submodule already follows this pattern).
3338
]
3439

3540
[dependency-groups]

0 commit comments

Comments
 (0)