@@ -107,10 +107,6 @@ scikit_learn_install() {
107
107
setup_ccache
108
108
show_installed_libraries
109
109
110
- # Set parallelism to 3 to overlap IO bound tasks with CPU bound tasks on CI
111
- # workers with 2 cores when building the compiled extensions of scikit-learn.
112
- export SKLEARN_BUILD_PARALLEL=3
113
-
114
110
if [[ " $UNAMESTR " == " Darwin" && " $SKLEARN_TEST_NO_OPENMP " == " true" ]]; then
115
111
# Without openmp, we use the system clang. Here we use /usr/bin/ar
116
112
# instead because llvm-ar errors
@@ -129,9 +125,7 @@ scikit_learn_install() {
129
125
export LDFLAGS=" $LDFLAGS -Wl,--sysroot=/"
130
126
fi
131
127
132
- if [[ " $BUILD_WITH_SETUPTOOLS " == " true" ]]; then
133
- python setup.py develop
134
- elif [[ " $PIP_BUILD_ISOLATION " == " true" ]]; then
128
+ if [[ " $PIP_BUILD_ISOLATION " == " true" ]]; then
135
129
# Check that pip can automatically build scikit-learn with the build
136
130
# dependencies specified in pyproject.toml using an isolated build
137
131
# environment:
@@ -143,12 +137,6 @@ scikit_learn_install() {
143
137
# toolchain
144
138
ADDITIONAL_PIP_OPTIONS=' -Csetup-args=--vsenv'
145
139
fi
146
- # TODO Always add --check-build-dependencies when all CI builds have
147
- # pip >= 22.1.1. At the time of writing, two CI builds (debian32_atlas and
148
- # ubuntu_atlas) have an older pip
149
- if pip install --help | grep check-build-dependencies; then
150
- ADDITIONAL_PIP_OPTIONS=" $ADDITIONAL_PIP_OPTIONS --check-build-dependencies"
151
- fi
152
140
# Use the pre-installed build dependencies and build directly in the
153
141
# current environment.
154
142
pip install --verbose --no-build-isolation --editable . $ADDITIONAL_PIP_OPTIONS
0 commit comments