File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff 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]
3235classifiers = [
3336 " Programming Language :: Python :: 3.8" ,
You can’t perform that action at this time.
0 commit comments