@@ -75,7 +75,7 @@ Repository = "https://github.com/Unidata/netcdf4-python"
7575where = [" src" ]
7676
7777[tool .setuptools .package-data ]
78- "netCDF4.plugins" = [" lib__nc *" ]
78+ "netCDF4.plugins" = [" *__nc *" ]
7979
8080[tool .setuptools_scm ]
8181
@@ -122,29 +122,37 @@ test-command = [
122122]
123123manylinux-x86_64-image = " ghcr.io/ocefpaf/manylinux_2_28_x86_64-netcdf"
124124manylinux-aarch64-image = " ghcr.io/ocefpaf/manylinux_2_28_aarch64-netcdf"
125- environment = {NETCDF4_LIMITED_API =" 1" , NETCDF_PLUGIN_DIR = " /usr/local/hdf5/lib/plugin/ " }
125+ environment = {NETCDF4_LIMITED_API =" 1" }
126126
127127[tool .cibuildwheel .macos ]
128- before-build = " brew install hdf5 netcdf"
128+ # https://cibuildwheel.pypa.io/en/stable/faq/#macos-passing-dyld_library_path-to-delocate
129+ repair-wheel-command = """ \
130+ DYLD_FALLBACK_LIBRARY_PATH=/Users/runner/micromamba/envs/build/lib \
131+ delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} \
132+ """
133+
134+ [tool .cibuildwheel .windows ]
135+ before-build = " python -m pip install delvewheel"
136+ repair-wheel-command = [
137+ " delvewheel show --include blosc.dll;zstd.dll;lz4.dll {wheel}" ,
138+ " delvewheel repair --include blosc.dll;zstd.dll;lz4.dll -w {dest_dir} {wheel}" ,
139+ ]
140+
141+ [[tool .cibuildwheel .overrides ]]
142+ select = " *linux*"
143+ environment = {NETCDF_PLUGIN_DIR =" /usr/local/hdf5/lib/plugin/" }
129144
130145[[tool .cibuildwheel .overrides ]]
131146select = " *-macosx_x86_64"
132147inherit.environment = " append"
133- environment = {MACOSX_DEPLOYMENT_TARGET =" 13.0" }
148+ environment = {MACOSX_DEPLOYMENT_TARGET =" 13.0" , HDF5_DIR = " /Users/runner/micromamba/envs/build " , netCDF4_DIR = " /Users/runner/micromamba/envs/build " , PATH = " ${PATH}:/Users/runner/micromamba/envs/build/bin " , NETCDF_PLUGIN_DIR = " /Users/runner/micromamba/envs/build/hdf5/lib/plugin " }
134149
135150[[tool .cibuildwheel .overrides ]]
136151select = " *-macosx_arm64"
137152inherit.environment = " append"
138- environment = {MACOSX_DEPLOYMENT_TARGET =" 14.0" }
139-
140- [tool .cibuildwheel .windows ]
141- before-build = " python -m pip install delvewheel"
142- repair-wheel-command = [
143- " delvewheel show {wheel}" ,
144- " delvewheel repair -w {dest_dir} {wheel}" ,
145- ]
153+ environment = {MACOSX_DEPLOYMENT_TARGET =" 14.0" ,HDF5_DIR =" /Users/runner/micromambe/envs/build" ,netCDF4_DIR =" /Users/runner/micromambe/envs/build" ,PATH =" ${PATH}:/Users/runner/micromamba/envs/build/bin" ,NETCDF_PLUGIN_DIR =" /Users/runner/micromamba/envs/build/hdf5/lib/plugin" }
146154
147155[[tool .cibuildwheel .overrides ]]
148156select = " *-win_*"
149157inherit.environment = " append"
150- environment = {HDF5_DIR =' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library' , netCDF4_DIR =' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library' , PATH =' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\bin;${PATH}' }
158+ environment = {HDF5_DIR =' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library' ,netCDF4_DIR =' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library' ,PATH =' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\bin;${PATH}' , NETCDF_PLUGIN_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\hdf5\\lib\\plugin ' }
0 commit comments