Skip to content

Commit

Permalink
conda: windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 20, 2024
1 parent 4bbb66b commit b727187
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions conda-recipes/smurff/bld.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
REM SET "CMAKE_ARGS=-DENABLE_MKL=ON -DBoost_COMPILER=-vc140 -DCMAKE_INSTALL_PREFIX=%PREFIX%"
SET "CMAKE_ARGS=-DENABLE_MKL=ON -DCMAKE_INSTALL_PREFIX=%PREFIX%"
setlocal

REM conda build sets "Visual Studio 15 2017 Win64" generator
REM which is incompatible with "-A x64" that we add ourselves in setup.py,
REM hence we remove " Win64"
SET "CMAKE_GENERATOR=%CMAKE_GENERATOR: Win64=%"
if "%blas_impl%"=="mkl" (
set "SKBUILD_CMAKE_ARGS=-DENABLE_MKL=ON -DENABLE_OPENBLAS=OFF"
) else (
set "SKBUILD_CMAKE_ARGS=-DENABLE_OPENBLAS=ON -DENABLE_MKL=OFF"
)

%PYTHON% setup.py install ^
--install-binaries ^
--single-version-externally-managed --record=record.txt
echo extra CMAKE_ARGS: %SKBUILD_CMAKE_ARGS%

%PYTHON% -m pip install . --no-deps -vv

endlocal

0 comments on commit b727187

Please sign in to comment.