diff --git a/conda-recipes/smurff/build.sh b/conda-recipes/smurff/build.sh index 6f6ba7a6..28741daf 100644 --- a/conda-recipes/smurff/build.sh +++ b/conda-recipes/smurff/build.sh @@ -1,10 +1,15 @@ #!/bin/bash -export CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=$PREFIX -DENABLE_MPI=OFF" +if [ $blas_impl == "mkl" ] +then + SKBUILD_CMAKE_ARGS="-DENABLE_MKL=ON" +elif [ $blas_impl == "openblas" ] +then + SKBUILD_CMAKE_ARGS="-DENABLE_OPENBLAS=ON" +fi -# make sure we use CONDA_BUILD_SYSROOT -# https://github.com/conda/conda-build/issues/3452#issuecomment-47539707 -[[ ${target_platform} == "osx-64" ]] && \ - CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_OSX_SYSROOT=${CONDA_BUILD_SYSROOT}" +export SKBUILD_CMAKE_ARGS -$PYTHON -m pip install . --no-deps -vv \ No newline at end of file +$PYTHON -m pip install . \ + $EXTRA_CMAKE_ARGS \ + --no-deps -vv diff --git a/pyproject.toml b/pyproject.toml index 8041b7b9..f866b113 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,6 @@ logging.level = "INFO" ENABLE_BOOST = "OFF" ENABLE_CMDLINE = "OFF" ENABLE_TESTS = "OFF" -ENABLE_OPENBLAS = "ON" [tool.setuptools_scm] # Section required write_to = "python/smurff/_version.py"