

set CVXOPT_MSVC=1
set "CVXOPT_BLAS_LIB_DIR=%LIBRARY_PREFIX%\lib"
set CVXOPT_BLAS_LIB=openblas
set CVXOPT_LAPACK_LIB=openblas

set CVXOPT_BUILD_GSL=1
set "CVXOPT_GSL_LIB_DIR=%LIBRARY_PREFIX%\lib"
set "CVXOPT_GSL_INC_DIR=%LIBRARY_PREFIX%\include\gsl"

set CVXOPT_BUILD_FFTW=1
set "CVXOPT_FFTW_LIB_DIR=%LIBRARY_PREFIX%\lib"
set "CVXOPT_FFTW_INC_DIR=%LIBRARY_PREFIX%\include"

set CVXOPT_BUILD_GLPK=1
set "CVXOPT_GLPK_LIB_DIR=%LIBRARY_PREFIX%\lib"
set "CVXOPT_GLPK_INC_DIR=%LIBRARY_PREFIX%\include"

set CVXOPT_BUILD_DSDP=1
set "CVXOPT_DSDP_LIB_DIR=%LIBRARY_PREFIX%\lib"
set "CVXOPT_DSDP_INC_DIR=%LIBRARY_PREFIX%\include"

set "CVXOPT_SUITESPARSE_LIB_DIR=%LIBRARY_PREFIX%\lib"
set "CVXOPT_SUITESPARSE_INC_DIR=%LIBRARY_PREFIX%\include\suitesparse"

%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

copy src\C\cvxopt.h %LIBRARY_PREFIX%\include
