Skip to content

Commit

Permalink
blas variants for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Mar 28, 2020
1 parent 0a58e65 commit 2a455e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
22 changes: 17 additions & 5 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@


set CVXOPT_MSVC=1
set "CVXOPT_BLAS_LIB_DIR=%LIBRARY_PREFIX%\lib"
set "CVXOPT_BLAS_LIB_DIR=%LIBRARY_PREFIX%"
if "%blas_impl%" == "mkl" (
set CVXOPT_BLAS_LIB=mkl_rt
set CVXOPT_LAPACK_LIB=mkl_rt
set CVXOPT_BLAS_LIB=lib\mkl_rt
set CVXOPT_LAPACK_LIB=lib\mkl_rt
)
if "%blas_impl%" == "openblas" (
set CVXOPT_BLAS_LIB=openblas
set CVXOPT_LAPACK_LIB=openblas
:: see "libopenblas" output for windows here:
:: https://github.com/conda-forge/openblas-feedstock/blob/master/recipe/meta.yaml
set CVXOPT_BLAS_LIB=bin\openblas
:: see "blas-devel" output for windows here:
:: https://github.com/conda-forge/blas-feedstock/blob/master/recipe/meta.yaml
set CVXOPT_LAPACK_LIB=bin\liblapack
)
if "%blas_impl%" == "blis" (
:: see output for windows here:
:: https://github.com/conda-forge/blis-feedstock/blob/master/recipe/meta.yaml
set CVXOPT_BLAS_LIB=lib\libblis
:: see "blas-devel" output for windows here:
:: https://github.com/conda-forge/blas-feedstock/blob/master/recipe/meta.yaml
set CVXOPT_LAPACK_LIB=bin\liblapack
)

set CVXOPT_BUILD_GSL=1
Expand Down
7 changes: 3 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ source:

build:
skip: true # [py<35]
skip: true # [win and blas_impl != 'mkl']
number: 203
number: 204

requirements:
build:
Expand All @@ -29,12 +28,12 @@ requirements:
- setuptools
- gsl
- fftw
- blas
- mkl-devel {{ mkl }} # [win and blas_impl == "mkl"]
- dsdp
- glpk
# suitesparse is linked against on windows, and compiled-in on windows, because yeah, windows.
- suitesparse # [not win]
# headers needed to compile suitesparse
- blas-devel

run:
- python
Expand Down

0 comments on commit 2a455e5

Please sign in to comment.