Skip to content

Commit

Permalink
overrides were out of order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlancaster committed May 14, 2024
1 parent bb87cb1 commit fb8fa6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,16 @@ inherit.environment="append"
environment = { CPATH="/opt/homebrew/include", LIBRARY_PATH="/opt/homebrew/lib" }

[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
select = "*-macosx_x86_64"
inherit.environment="append"
environment = { MACOSX_DEPLOYMENT_TARGET="10.15" } # catalina the minimum version of gsl supported by 'brew'
environment = { MACOSX_DEPLOYMENT_TARGET="10.15" } # 10.15 is Catalina the minimum version of gsl supported by 'brew'
inherit.before-all="append"
before-all = "brew install gsl" # since Big Sur x86_64 version exists, it should install that version
# install the catalina version of `gsl`
# before-all = "brew fetch --force --bottle-tag=catalina gsl; brew reinstall $(brew --cache --bottle-tag=catalina gsl)"

[[tool.cibuildwheel.overrides]]
select = "*-macosx_x86_64"
select = "*-macosx_arm64"
inherit.before-all="append"
# need to force the Big Sur (MacOS 11.0) version of `gsl` to match the wheel tag, otherwise it will attempt to install MacOS 14 version
before-all = "brew fetch --force --bottle-tag=arm64_big_sur gsl; brew reinstall $(brew --cache --bottle-tag=arm64_big_sur gsl)"
Expand Down

0 comments on commit fb8fa6e

Please sign in to comment.