Skip to content

Commit

Permalink
show DLLs and pin libnetcdf for more control
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Oct 22, 2023
1 parent 0b5a475 commit 203bc1d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Wheels
on:
pull_request:
push:
tags:
- "v*"
release:
types:
- published
# tags:
# - "v*"
# release:
# types:
# - published

permissions:
contents: read
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
environment-name: build
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} hdf5 libnetcdf --channel conda-forge
python=${{ matrix.python-version }} libnetcdf=4.9.2 --channel conda-forge
- name: Install cibuildwheel
run: |
Expand All @@ -117,7 +117,9 @@ jobs:
netCDF4_DIR="C:\\Users\\runneradmin\\micromamba\\envs\\build\\Library"
PATH="C:\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\bin;${PATH}"
CIBW_BEFORE_BUILD: "python -m pip install delvewheel"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >
delvewheel show {wheel}
&& delvewheel repair -w {dest_dir} {wheel}
CIBW_TEST_COMMAND: >
python -c "import netCDF4; print(f'netCDF4 v{netCDF4.__version__}')"
&& xcopy {project}\\test . /E/H
Expand Down

0 comments on commit 203bc1d

Please sign in to comment.