|
1 | 1 | #!/usr/bin/env bash
|
2 |
| -set -x |
3 | 2 | set -e
|
4 | 3 |
|
5 | 4 | # Decide what kind of documentation build to run, and run it.
|
@@ -154,32 +153,35 @@ sudo -E apt-get -yq update --allow-releaseinfo-change
|
154 | 153 | sudo -E apt-get -yq --no-install-suggests --no-install-recommends \
|
155 | 154 | install dvipng gsfonts ccache zip optipng
|
156 | 155 |
|
157 |
| -# deactivate circleci virtualenv and setup a miniconda env instead |
| 156 | +# deactivate circleci virtualenv and setup a conda env instead |
158 | 157 | if [[ `type -t deactivate` ]]; then
|
159 | 158 | deactivate
|
160 | 159 | fi
|
161 | 160 |
|
162 |
| -MINICONDA_PATH=$HOME/miniconda |
163 |
| -# Install dependencies with miniconda |
164 |
| -wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh \ |
165 |
| - -O miniconda.sh |
166 |
| -chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH |
167 |
| -export PATH="/usr/lib/ccache:$MINICONDA_PATH/bin:$PATH" |
| 161 | +MAMBAFORGE_PATH=$HOME/mambaforge |
| 162 | +# Install dependencies with mamba |
| 163 | +wget -q https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh \ |
| 164 | + -O mambaforge.sh |
| 165 | +chmod +x mambaforge.sh && ./mambaforge.sh -b -p $MAMBAFORGE_PATH |
| 166 | +export PATH="/usr/lib/ccache:$MAMBAFORGE_PATH/bin:$PATH" |
168 | 167 |
|
169 | 168 | ccache -M 512M
|
170 | 169 | export CCACHE_COMPRESS=1
|
171 | 170 |
|
172 | 171 | # pin conda-lock to latest released version (needs manual update from time to time)
|
173 | 172 | mamba install conda-lock==1.0.5 -y
|
174 |
| -conda-lock install --name $CONDA_ENV_NAME $LOCK_FILE |
| 173 | +conda-lock install --log-level WARNING --name $CONDA_ENV_NAME $LOCK_FILE |
175 | 174 | source activate $CONDA_ENV_NAME
|
176 | 175 |
|
177 | 176 | mamba list
|
178 | 177 |
|
179 | 178 | # Set parallelism to 3 to overlap IO bound tasks with CPU bound tasks on CI
|
180 | 179 | # workers with 2 cores when building the compiled extensions of scikit-learn.
|
181 | 180 | export SKLEARN_BUILD_PARALLEL=3
|
182 |
| -python setup.py develop |
| 181 | +pip install -e . --no-build-isolation |
| 182 | + |
| 183 | +echo "ccache build summary:" |
| 184 | +ccache -s |
183 | 185 |
|
184 | 186 | export OMP_NUM_THREADS=1
|
185 | 187 |
|
|
0 commit comments