Skip to content

Commit

Permalink
ci: split conda and cibw cmake defines
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 17, 2024
1 parent 1a08830 commit 22fc0ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions conda-recipes/smurff/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

if [ "$blas_impl" == "mkl" ]
then
SKBUILD_CMAKE_ARGS="-DENABLE_MKL=ON"
SKBUILD_CMAKE_ARGS="-DENABLE_MKL=ON -DENABLE_OPENBLAS=OFF"
else
SKBUILD_CMAKE_ARGS="-DENABLE_OPENBLAS=ON"
SKBUILD_CMAKE_ARGS="-DENABLE_OPENBLAS=ON -DENABLE_MKL=OFF"
fi

echo "extra CMAKE_ARGS: $SKBUILD_CMAKE_ARGS"
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ sdist.include = ["python/smurff/_version.py"]
cmake.verbose = true
logging.level = "INFO"

[tool.scikit-build.cmake.define]
ENABLE_BOOST = "OFF"
ENABLE_CMDLINE = "OFF"
ENABLE_TESTS = "OFF"
ENABLE_OPENBLAS = "ON"

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

Expand Down Expand Up @@ -79,6 +73,12 @@ test-command = 'pytest {project}/python/test'
test-requires = 'parameterized pytest'
build-verbosity = 3

[tool.cibuildwheel.config-settings]
"cmake.define.ENABLE_OPENBLAS" = "ON"
"cmake.define.ENABLE_BOOST" = "OFF"
"cmake.define.ENABLE_CMDLINE" = "OFF"
"cmake.define.ENABLE_TEST" = "OFF"

[tool.cibuildwheel.macos]
before-all = [
"brew install --formulae openblas eigen ci/highfive.rb",
Expand Down

0 comments on commit 22fc0ba

Please sign in to comment.