Skip to content

Commit e846b3a

Browse files
committed
build: pin statsmodels<=0.14.4 on emscripten for pyodide compatibility
pyodide ships statsmodels==0.14.4, which is incompatible with the statsmodels>=0.14.6 requirement. Split the dependency by platform so plotnine remains installable in pyodide.
1 parent 67fc88b commit e846b3a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ dependencies = [
2828
"mizani~=0.14.0",
2929
"numpy>=1.23.5",
3030
"scipy>=1.8.0",
31-
"statsmodels>=0.14.6",
31+
# pyodide ships with statmodels==0.14.4 which is broken for later versions
32+
# of numpy and pandas
33+
# https://github.com/statsmodels/statsmodels/releases/tag/v0.14.6
34+
"statsmodels<=0.14.4; sys_platform == 'emscripten'",
35+
"statsmodels>=0.14.6; sys_platform != 'emscripten'",
3236
]
3337
requires-python = ">=3.10"
3438

0 commit comments

Comments
 (0)