Skip to content

Commit

Permalink
Fix macOS wheel build
Browse files Browse the repository at this point in the history
* the HDF5 bottle uses gcc10; https://formulae.brew.sh/formula/hdf5 so
  we are hit by this: Homebrew/homebrew-core#68866
  sadly, it seems Homebrew/brew#10327 doesn't fix it, so we unlink old
  gcc's manually
  • Loading branch information
mgeplf committed Feb 1, 2021
1 parent 7dca730 commit a2dfb48
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish-sdist-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ jobs:
- name: Build wheels Mac OS
if: runner.os == 'macOS'
env:
CIBW_BEFORE_BUILD: 'brew update; brew install cmake hdf5'
CIBW_BEFORE_BUILD: |
brew update
brew --version
brew install cmake
# the HDF5 bottle uses gcc10; https://formulae.brew.sh/formula/hdf5
# so we are hit by this: https://github.com/Homebrew/homebrew-core/issues/68866
# sadly, it seems Homebrew/brew#10327 doesn't fix it, so we unlink old gcc's manually
brew unlink gcc@8 gcc@9
brew install hdf5
run: |
python -m cibuildwheel --output-dir dist
- name: Store wheel as artifact
Expand Down

0 comments on commit a2dfb48

Please sign in to comment.