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 1
1
#! /usr/bin/env bash
2
2
set -e
3
+ set -x
3
4
4
5
# Decide what kind of documentation build to run, and run it.
5
6
#
@@ -174,16 +175,27 @@ bash ./miniconda.sh -b -p $MINIFORGE_PATH
174
175
source $MINIFORGE_PATH /etc/profile.d/conda.sh
175
176
conda activate
176
177
177
- export PATH=" /usr/lib/ccache:$PATH "
178
- ccache -M 512M
179
- export CCACHE_COMPRESS=1
180
178
181
179
create_conda_environment_from_lock_file $CONDA_ENV_NAME $LOCK_FILE
182
180
conda activate $CONDA_ENV_NAME
183
181
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
+
184
193
show_installed_libraries
185
194
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"
187
199
188
200
echo " ccache build summary:"
189
201
ccache -s
You can’t perform that action at this time.
0 commit comments