Skip to content

Commit e6be0a2

Browse files
committed
BLD: Allow statsmodels 0.14.4 on pyodide
Pyodide bundles statsmodels==0.14.4. Relax the lower bound on emscripten so plotnine installs against the pre-bundled wheel, while keeping >=0.14.6 elsewhere for pandas 3 compatibility.
1 parent d92dd7f commit e6be0a2

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

doc/changelog.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ title: Changelog
99

1010
- Bundled agent skills
1111

12+
### Bug Fixes
13+
14+
- Allow `statsmodels==0.14.4` on pyodide, which bundles that version. Other
15+
platforms still require `statsmodels>=0.14.6` for pandas 3 compatibility.
16+
1217

1318
## v0.15.3
1419
(2025-01-28)

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)