Skip to content

Commit

Permalink
CI Use new conda syntax to select blas (scikit-learn#15705)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiedbb authored and rth committed Nov 22, 2019
1 parent db59dd7 commit 308a54e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
pylatest_conda_mkl:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
INSTALL_MKL: 'true'
BLAS: 'mkl'
NUMPY_VERSION: '*'
SCIPY_VERSION: '*'
CYTHON_VERSION: '*'
Expand All @@ -52,7 +52,7 @@ jobs:
py35_conda_openblas:
DISTRIB: 'conda'
PYTHON_VERSION: '3.5'
INSTALL_MKL: 'false'
BLAS: 'openblas'
NUMPY_VERSION: '1.11.0'
SCIPY_VERSION: '0.17.0'
PANDAS_VERSION: '*'
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
pylatest_conda_mkl:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
INSTALL_MKL: 'true'
BLAS: 'mkl'
NUMPY_VERSION: '*'
SCIPY_VERSION: '*'
CYTHON_VERSION: '*'
Expand All @@ -107,7 +107,7 @@ jobs:
pylatest_conda_mkl_no_openmp:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
INSTALL_MKL: 'true'
BLAS: 'mkl'
NUMPY_VERSION: '*'
SCIPY_VERSION: '*'
CYTHON_VERSION: '*'
Expand Down
9 changes: 2 additions & 7 deletions build_tools/azure/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ if [[ "$DISTRIB" == "conda" ]]; then

TO_INSTALL="python=$PYTHON_VERSION pip \
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION \
cython=$CYTHON_VERSION joblib=$JOBLIB_VERSION"

if [[ "$INSTALL_MKL" == "true" ]]; then
TO_INSTALL="$TO_INSTALL mkl"
else
TO_INSTALL="$TO_INSTALL nomkl"
fi
cython=$CYTHON_VERSION joblib=$JOBLIB_VERSION\
blas[build=$BLAS]"

if [[ -n "$PANDAS_VERSION" ]]; then
TO_INSTALL="$TO_INSTALL pandas=$PANDAS_VERSION"
Expand Down

0 comments on commit 308a54e

Please sign in to comment.