8000 CI reduce verbosity of build_doc.sh (#23557) · scikit-learn/scikit-learn@a4a53ea · GitHub
[go: up one dir, main page]

Skip to content

Commit a4a53ea

Browse files
authored
CI reduce verbosity of build_doc.sh (#23557)
1 parent 996237f commit a4a53ea

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

build_tools/github/build_doc.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env bash
2-
set -x
32
set -e
43

54
# Decide what kind of documentation build to run, and run it.
@@ -154,32 +153,35 @@ sudo -E apt-get -yq update --allow-releaseinfo-change
154153
sudo -E apt-get -yq --no-install-suggests --no-install-recommends \
155154
install dvipng gsfonts ccache zip optipng
156155

157-
# deactivate circleci virtualenv and setup a miniconda env instead
156+
# deactivate circleci virtualenv and setup a conda env instead
158157
if [[ `type -t deactivate` ]]; then
159158
deactivate
160159
fi
161160

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"
168167

169168
ccache -M 512M
170169
export CCACHE_COMPRESS=1
171170

172171
# pin conda-lock to latest released version (needs manual update from time to time)
173172
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
175174
source activate $CONDA_ENV_NAME
176175

177176
mamba list
178177

179178
# Set parallelism to 3 to overlap IO bound tasks with CPU bound tasks on CI
180179
# workers with 2 cores when building the compiled extensions of scikit-learn.
181180
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
183185

184186
export OMP_NUM_THREADS=1
185187

0 commit comments

Comments
 (0)
0