@@ -32,58 +32,50 @@ edit_init
32
32
home_dir=$( pwd)
33
33
echo " [home_dir: $home_dir ]"
34
34
35
- MINICONDA_DIR=" $HOME /miniconda3"
35
+ # install miniconda
36
+ echo " [Using clean Miniconda install]"
36
37
37
- if [ -d " $MINICONDA_DIR " ] && [ -e " $MINICONDA_DIR /bin/conda" ] && [ " $USE_CACHE " ]; then
38
- echo " [Miniconda install already present from cache: $MINICONDA_DIR ]"
39
-
40
- conda config --set always_yes yes --set changeps1 no || exit 1
41
- echo " [update conda]"
42
- conda update -q conda || exit 1
43
-
44
- # Useful for debugging any issues with conda
45
- conda info -a || exit 1
46
-
47
- # set the compiler cache to work
48
- if [ " ${TRAVIS_OS_NAME} " == " linux" ]; then
49
- echo " [Using ccache]"
50
- export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
51
- gcc=$( which gcc)
52
- echo " [gcc: $gcc ]"
53
- ccache=$( which ccache)
54
- echo " [ccache: $ccache ]"
55
- export CC=' ccache gcc'
56
- fi
38
+ MINICONDA_DIR=" $HOME /miniconda3"
39
+ if [ -d " $MINICONDA_DIR " ]; then
40
+ rm -rf " $MINICONDA_DIR "
41
+ fi
57
42
43
+ # install miniconda
44
+ if [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
45
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
46
+ else
47
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
48
+ fi
49
+ bash miniconda.sh -b -p " $MINICONDA_DIR " || exit 1
50
+
51
+ echo " [update conda]"
52
+ conda config --set ssl_verify false || exit 1
53
+ conda config --set always_yes true --set changeps1 false || exit 1
54
+ conda update -q conda
55
+
56
+ # add the pandas channel to take priority
57
+ # to add extra packages
58
+ echo " [add channels]"
59
+ conda config --add channels pandas || exit 1
60
+ conda config --remove channels defaults || exit 1
61
+ conda config --add channels defaults || exit 1
62
+
63
+ conda install anaconda-client
64
+
65
+ # Useful for debugging any issues with conda
66
+ conda info -a || exit 1
67
+
68
+ # set the compiler cache to work
69
+ if [ " $USE_CACHE " ] && " ${TRAVIS_OS_NAME} " == " linux" ]; then
70
+ echo " [Using ccache]"
71
+ export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
72
+ gcc=$( which gcc)
73
+ echo " [gcc: $gcc ]"
74
+ ccache=$( which ccache)
75
+ echo " [ccache: $ccache ]"
76
+ export CC=' ccache gcc'
58
77
else
59
- echo " [Using clean Miniconda install]"
60
78
echo " [Not using ccache]"
61
- rm -rf " $MINICONDA_DIR "
62
- # install miniconda
63
- if [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
64
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
65
- else
66
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
67
- fi
68
- bash miniconda.sh -b -p " $MINICONDA_DIR " || exit 1
69
-
70
- echo " [update conda]"
71
- conda config --set ssl_verify false || exit 1
72
- conda config --set always_yes true --set changeps1 false || exit 1
73
- conda update -q conda
74
-
75
- # add the pandas channel to take priority
76
- # to add extra packages
77
- echo " [add channels]"
78
- conda config --add channels pandas || exit 1
79
- conda config --remove channels defaults || exit 1
80
- conda config --add channels defaults || exit 1
81
-
82
- conda install anaconda-client
83
-
84
- # Useful for debugging any issues with conda
85
- conda info -a || exit 1
86
-
87
79
fi
88
80
89
81
# may have installation instructions for this build
0 commit comments