Skip to content

Commit e4e7a0d

Browse files
authored
Merge pull request #280 from repagh/install-scikit-for-travis
install scikit-build for testing with slycot
2 parents 31e6944 + 1453385 commit e4e7a0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ before_install:
5151
- conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage
5252
- source activate test-environment
5353
# Install openblas if slycot is being used
54+
# also install scikit-build for the build process
5455
- if [[ "$SLYCOT" != "" ]]; then
55-
conda install openblas;
56+
conda install openblas;
57+
conda install -c conda-forge scikit-build;
5658
fi
5759
# Make sure to look in the right place for python libraries (for slycot)
5860
- export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib"
@@ -65,10 +67,11 @@ install:
6567
- conda install $SCIPY matplotlib
6668
# Build slycot from source
6769
# For python 3, need to provide pointer to python library
70+
# Use "Unix Makefiles" as generator, because Ninja cannot handle Fortran
6871
#! git clone https://github.com/repagh/Slycot.git slycot;
6972
- if [[ "$SLYCOT" != "" ]]; then
7073
git clone https://github.com/python-control/Slycot.git slycot;
71-
cd slycot; python setup.py install; cd ..;
74+
cd slycot; python setup.py install -G "Unix Makefiles"; cd ..;
7275
fi
7376

7477
# command to run tests

0 commit comments

Comments
 (0)