Skip to content

Commit 42b1028

Browse files
committed
'CI:test'
1 parent 7449de9 commit 42b1028

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ jobs:
3333
# Build requirements + runtime deps (setup.py imports numpy/scipy/pybind11/Cython)
3434
# Pin numpy<2 for compatibility with the bundled cython/pybind extensions.
3535
python -m pip install "numpy<2" "scipy<2" "Cython<3" pybind11
36-
python -m pip install prettytable xarray netcdf4
36+
python -m pip install prettytable xarray
37+
38+
- name: Install netCDF4 (py38 pinned to avoid source build)
39+
run: |
40+
if "${{ matrix.python-version }}" == "3.8" (
41+
python -m pip install "netcdf4<1.7"
42+
) else (
43+
python -m pip install netcdf4
44+
)
3745
3846
- name: Build native extensions (in-place)
3947
run: |

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ dependencies = [
2727
"scipy",
2828
"prettytable",
2929
"xarray",
30-
"netcdf4",
30+
# netCDF4 wheels for py38 on Windows can be missing for newer releases,
31+
# causing pip to fall back to a source build that requires HDF5 headers.
32+
"netcdf4<1.7; python_version<'3.9'",
33+
"netcdf4; python_version>='3.9'",
3134
]
3235
classifiers = [
3336
"Programming Language :: Python :: 3.8",

0 commit comments

Comments
 (0)