File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
3+ set -x
34
45# Decide what kind of documentation build to run, and run it.
56#
@@ -174,16 +175,27 @@ bash ./miniconda.sh -b -p $MINIFORGE_PATH
174175source $MINIFORGE_PATH /etc/profile.d/conda.sh
175176conda activate
176177
177- export PATH=" /usr/lib/ccache:$PATH "
178- ccache -M 512M
179- export CCACHE_COMPRESS=1
180178
181179create_conda_environment_from_lock_file $CONDA_ENV_NAME $LOCK_FILE
182180conda activate $CONDA_ENV_NAME
183181
182+ # Sets up ccache when using system compiler
183+ export PATH=" /usr/lib/ccache:$PATH "
184+ # Sets up ccache when using conda-forge compilers (needs to be after conda
185+ # activate which sets CC and CXX)
186+ export CC=" ccache $CC "
187+ export CXX=" ccache $CXX "
188+ ccache -M 512M
189+ export CCACHE_COMPRESS=1
190+ # Zeroing statistics so that ccache statistics are shown only for this build
191+ ccache -z
192+
184193show_installed_libraries
185194
186- pip install -e . --no-build-isolation --config-settings=compile-args=" -j4"
195+ # Specify explictly ninja -j argument because ninja does not handle cgroups v2 and
196+ # use the same default rule as ninja (-j3 since we have 2 cores on CircleCI), see
197+ # https://github.com/scikit-learn/scikit-learn/pull/30333
198+ pip install -e . --no-build-isolation --config-settings=compile-args=" -j 3"
187199
188200echo " ccache build summary:"
189201ccache -s
You can’t perform that action at this time.
0 commit comments