Skip to content

Commit

Permalink
cibw: macos
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 20, 2024
1 parent 51b725b commit c464fc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci/buildwheel/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ echo "MACOSX_DEPLOYMENT_TARGET: [$MACOSX_DEPLOYMENT_TARGET]"
echo "PWD: [$PWD]"

brew install --formulae eigen ../highfive.rb
brew uninstall --ignore-dependencies hdf5

./install_hdf5.sh
# ./install_openblas.sh
./install_hdf5.sh
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ sdist.include = ["python/smurff/_version.py"]
cmake.verbose = true
logging.level = "INFO"

[tool.scikit-build.cmake.define]
HDF5_ROOT = "/usr/local/hdf5"
ENABLE_BOOST = "ON"
ENABLE_CMDLINE = "ON"
ENABLE_TESTS = "ON"
ENABLE_BLAS = "ON"

[tool.setuptools_scm] # Section required
write_to = "python/smurff/_version.py"

Expand Down Expand Up @@ -83,12 +90,11 @@ build-verbosity = 3
"cmake.define.BLA_VENDOR" = "Apple"

[tool.cibuildwheel.linux.config-settings]
"cmake.define.HDF5_ROOT" = "/usr/local/hdf5"
"cmake.define.ENABLE_BLAS" = "ON"
"cmake.define.ENABLE_BOOST" = "OFF"
"cmake.define.ENABLE_CMDLINE" = "OFF"
"cmake.define.ENABLE_TESTS" = "OFF"
"cmake.define.BLA_VENDOR" = "OpenBLAS"

[tool.cibuildwheel.macos]
before-all = "ci/buildwheel/install_hdf5.sh"
before-all = "ci/buildwheel/install_deps.sh"

0 comments on commit c464fc2

Please sign in to comment.