-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·63 lines (49 loc) · 1.36 KB
/
install.sh
File metadata and controls
executable file
·63 lines (49 loc) · 1.36 KB
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
#!/bin/bash
set -e
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
infix="Linux"
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
infix="MacOSX"
else
infix="unknown"
fi
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
url="https://repo.continuum.io/miniconda/Miniconda2-latest-$infix-x86_64.sh"
else
url="https://repo.continuum.io/miniconda/Miniconda3-latest-$infix-x86_64.sh"
fi
pushd .
cd
mkdir -p download
cd download
echo "Cached in $HOME/download:"
ls -l
echo
if [[ ! -f miniconda-$infix.sh ]]
then
wget $url -O "miniconda-$infix.sh"
fi
if [[ -d $HOME/miniconda ]]
then
rm -rf $HOME/miniconda
fi
chmod +x miniconda-$infix.sh && ./miniconda-$infix.sh -b -p $HOME/miniconda
cd ..
export PATH="$HOME/miniconda/bin:$PATH"
popd
hash -r
conda config --set always_yes yes --set changeps1 no
conda install -n root _license -q
conda update -q conda
conda info -a
conda create -q -n travisci python=$TRAVIS_PYTHON_VERSION nomkl numba numpy \
scipy pip sphinx sphinx_rtd_theme pygments \
pytest psutil pandas h5py hdf5 matplotlib \
pycparser cffi llvmlite scikit-learn
source activate travisci
# conda install --yes -q -c numba llvmdev="3.8*" llvmlite
# conda install --yes -q -c conda-forge pypandoc
if [ $TRAVIS_PYTHON_VERSION \< "3.4" ];
then
conda install --yes -q enum34;
fi