-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis_before_install.sh
executable file
·66 lines (61 loc) · 1.75 KB
/
.travis_before_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
echo "Prepare interpreter"
if [ $TRAVIS_OS_NAME == 'linux' ]; then
echo "Installing deps for linux"
#sudo add-apt-repository ppa:nschloe/swig-backports -y
#sudo apt-get -qq update
#sudo apt-get install -y swig3.0
elif [ $TRAVIS_OS_NAME == 'osx' ]; then
echo "Installing deps for OSX"
if [ $PYTHON_VERSION == "2.7" ]; then
CONDA_VER='2'
elif [ $PYTHON_VERSION == "3.7" ]; then
CONDA_VER='3'
else
echo "Miniconda only supports 2.7 and 3.7"
fi
curl "https://repo.continuum.io/miniconda/Miniconda${CONDA_VER}-latest-MacOSX-x86_64.sh" -o "miniconda.sh"
bash "miniconda.sh" -b -p $HOME/miniconda
echo "$PATH"
export PATH="$HOME/miniconda/bin:$PATH"
source $HOME/miniconda/bin/activate
# Use pip from conda
conda install -y pip
pip --version
else
echo "OS not recognized: $TRAVIS_OS_NAME"
exit 1
fi
echo "Installing dependencies"
## setuptools < 18.0 has issues with Cython as a dependency
#pip install Cython
#if [ $? != 0 ]; then
# exit 1
#fi
# deps #FIXME: do better
pip install pytest
pip install pytest-cov
pip install coveralls
pip install pyyaml
pip install numpy
pip install scipy
pip install pandas
pip install xarray
pip install loompy
pip install scikit-learn
pip install matplotlib
pip install seaborn
# NOTE: one day they shall fix this (sigh!)
pip install Cython
#pip install bhtsne
# Google API tests are only local anyway
#pip install google-api-python-client
#pip install numba
#pip install umap-learn
pip install sam-algorithm
# NOTE: lshknn requires eigen which is purely headers. It finds the headers via pkgconfig
# which is the Python wrapper of pkg-config. Let's see how far we get with this on OSX
# TODO: install eigen happens in the .travis.yml
pip install pkgconfig
pip install pybind11
pip install lshknn