@@ -16,17 +16,6 @@ make_conda() {
16
16
source activate $VIRTUALENV
17
17
}
18
18
19
- setup_ccache () {
20
- echo " Setting up ccache"
21
- mkdir /tmp/ccache/
22
- which ccache
23
- for name in gcc g++ cc c++ x86_64-linux-gnu-gcc x86_64-linux-gnu-c++; do
24
- ln -s $( which ccache) " /tmp/ccache/${name} "
25
- done
26
- export PATH=" /tmp/ccache/:${PATH} "
27
- ccache -M 256M
28
- }
29
-
30
19
# imports get_dep
31
20
source build_tools/shared.sh
32
21
@@ -39,7 +28,7 @@ if [[ "$DISTRIB" == "conda" || "$DISTRIB" == *"mamba"* ]]; then
39
28
fi
40
29
41
30
TO_INSTALL=" $TO_INSTALL python=$PYTHON_VERSION "
42
- TO_INSTALL=" $TO_INSTALL ccache pip blas[build=$BLAS ]"
31
+ TO_INSTALL=" $TO_INSTALL pip blas[build=$BLAS ]"
43
32
44
33
TO_INSTALL=" $TO_INSTALL $( get_dep numpy $NUMPY_VERSION ) "
45
34
TO_INSTALL=" $TO_INSTALL $( get_dep scipy $SCIPY_VERSION ) "
@@ -50,90 +39,77 @@ if [[ "$DISTRIB" == "conda" || "$DISTRIB" == *"mamba"* ]]; then
50
39
TO_INSTALL=" $TO_INSTALL $( get_dep matplotlib $MATPLOTLIB_VERSION ) "
51
40
52
41
make_conda $TO_INSTALL
53
- setup_ccache
54
42
55
43
elif [[ " $DISTRIB " == " ubuntu" ]]; then
56
44
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
57
45
sudo apt-get update
58
46
sudo apt-get install python3-scipy python3-sklearn python3-matplotlib \
59
- libatlas3-base libatlas-base-dev python3-virtualenv ccache
47
+ libatlas3-base libatlas-base-dev python3-virtualenv
60
48
python3 -m virtualenv --system-site-packages --python=python3 $VIRTUALENV
61
49
source $VIRTUALENV /bin/activate
62
- setup_ccache
63
50
python -m pip install $( get_dep joblib $JOBLIB_VERSION )
64
51
65
52
elif [[ " $DISTRIB " == " debian-32" ]]; then
66
53
apt-get update
67
54
apt-get install -y python3-dev python3-numpy python3-scipy python3-sklearn \
68
55
python3-matplotlib libatlas3-base libatlas-base-dev python3-virtualenv \
69
- python3-pandas ccache
56
+ python3-pandas
70
57
71
58
python3 -m virtualenv --system-site-packages --python=python3 $VIRTUALENV
72
59
source $VIRTUALENV /bin/activate
73
- setup_ccache
74
60
python -m pip install $( get_dep joblib $JOBLIB_VERSION )
75
61
76
62
elif [[ " $DISTRIB " == " conda-pip-latest" ]]; then
77
63
# Since conda main channel usually lacks behind on the latest releases,
78
64
# we use pypi to test against the latest releases of the dependencies.
79
65
# conda is still used as a convenient way to install Python and pip.
80
- make_conda " ccache python=$PYTHON_VERSION "
81
- setup_ccache
66
+ make_conda " python=$PYTHON_VERSION "
82
67
python -m pip install -U pip
83
68
84
69
python -m pip install scikit-learn pandas matplotlib
85
70
86
71
elif [[ " $DISTRIB " == " conda-pip-latest-tensorflow" ]]; then
87
- make_conda " ccache python=$PYTHON_VERSION "
88
- setup_ccache
72
+ make_conda " python=$PYTHON_VERSION "
89
73
python -m pip install -U pip
90
74
91
75
python -m pip install numpy scipy scikit-learn pandas tensorflow
92
76
93
77
elif [[ " $DISTRIB " == " conda-latest-tensorflow" ]]; then
94
- make_conda " ccache python=$PYTHON_VERSION numpy scipy scikit-learn pandas tensorflow"
95
- setup_ccache
78
+ make_conda " python=$PYTHON_VERSION numpy scipy scikit-learn pandas tensorflow"
96
79
97
80
elif [[ " $DISTRIB " == " conda-minimum-tensorflow" ]]; then
98
- TO_INSTALL=" ccache "
99
- TO_INSTALL=" $TO_INSTALL python=$PYTHON_VERSION "
81
+ TO_INSTALL=" $python =$PYTHON_VERSION "
100
82
TO_INSTALL=" $TO_INSTALL $( get_dep numpy $NUMPY_VERSION ) "
101
83
TO_INSTALL=" $TO_INSTALL $( get_dep scipy $SCIPY_VERSION ) "
102
84
TO_INSTALL=" $TO_INSTALL $( get_dep scikit-learn $SKLEARN_VERSION ) "
103
85
TO_INSTALL=" $TO_INSTALL $( get_dep pandas $PANDAS_VERSION ) "
104
86
TO_INSTALL=" $TO_INSTALL $( get_dep tensorflow $TENSORFLOW_VERSION ) "
105
87
make_conda $TO_INSTALL
106
- setup_ccache
107
88
108
89
elif [[ " $DISTRIB " == " conda-pip-latest-keras" ]]; then
109
- make_conda " ccache python=$PYTHON_VERSION "
110
- setup_ccache
90
+ make_conda " =$PYTHON_VERSION "
111
91
python -m pip install -U pip
112
92
113
93
python -m pip install numpy scipy scikit-learn pandas keras
114
94
115
95
elif [[ " $DISTRIB " == " conda-latest-keras" ]]; then
116
- make_conda " ccache python=$PYTHON_VERSION numpy scipy scikit-learn pandas keras"
117
- setup_ccache
96
+ make_conda " =$PYTHON_VERSION numpy scipy scikit-learn pandas keras"
118
97
119
98
elif [[ " $DISTRIB " == " conda-minimum-keras" ]]; then
120
- TO_INSTALL=" ccache "
121
- TO_INSTALL=" $TO_INSTALL python=$PYTHON_VERSION "
99
+ TO_INSTALL=" =$PYTHON_VERSION "
122
100
TO_INSTALL=" $TO_INSTALL $( get_dep numpy $NUMPY_VERSION ) "
123
101
TO_INSTALL=" $TO_INSTALL $( get_dep scipy $SCIPY_VERSION ) "
124
102
TO_INSTALL=" $TO_INSTALL $( get_dep scikit-learn $SKLEARN_VERSION ) "
125
103
TO_INSTALL=" $TO_INSTALL $( get_dep pandas $PANDAS_VERSION ) "
126
104
TO_INSTALL=" $TO_INSTALL $( get_dep keras $KERAS_VERSION ) "
127
105
make_conda $TO_INSTALL
128
- setup_ccache
129
106
130
107
elif [[ " $DISTRIB " == " conda-pip-scipy-dev" ]]; then
131
- make_conda " ccache python =$PYTHON_VERSION "
108
+ make_conda " =$PYTHON_VERSION "
132
109
python -m pip install -U pip
133
110
echo " Installing numpy and scipy master wheels"
134
111
dev_anaconda_url=https://pypi.anaconda.org/scipy-wheels-nightly/simple
135
112
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url numpy pandas scipy scikit-learn
136
- setup_ccache
137
113
echo " Installing joblib master"
138
114
pip install https://github.com/joblib/joblib/archive/master.zip
139
115
echo " Installing tensorflow master"
@@ -171,4 +147,3 @@ except ImportError:
171
147
172
148
python -m pip list
173
149
pip install --verbose --editable .
174
- ccache -s
0 commit comments