@@ -88,8 +88,12 @@ elif [[ "$DISTRIB" == "conda-pip-latest" ]]; then
88
88
# Since conda main channel usually lacks behind on the latest releases,
89
89
# we use pypi to test against the latest releases of the dependencies.
90
90
# conda is still used as a convenient way to install Python and pip.
91
+ # We let pip install the latest version of the build dependencies from
92
+ # pyproject.toml and the runtime dependencies from the dist-info metadata
93
+ # that results from the scikit-learn setup.py file.
94
+ # The optional test are installed separately:
91
95
make_conda " python=$PYTHON_VERSION "
92
- python -m pip install numpy scipy joblib cython
96
+ python -m pip install -U pip
93
97
python -m pip install pytest==$PYTEST_VERSION pytest-cov pytest-xdist
94
98
python -m pip install pandas matplotlib pyamg
95
99
fi
@@ -117,5 +121,14 @@ except ImportError:
117
121
print('pandas not installed')
118
122
"
119
123
python -m pip list
120
- python setup.py build_ext --inplace -j 3
121
- python setup.py develop
124
+
125
+ if [[ " $DISTRIB " == " conda-pip-latest" ]]; then
126
+ # Check that pip can automatically install the build dependencies from
127
+ # pyproject.toml using an isolated build environment:
128
+ pip install --verbose --editable .
129
+ else
130
+ # Use the pre-installed build dependencies and build directly in the
131
+ # current environment.
132
+ python setup.py build_ext --inplace -j 3
133
+ python setup.py develop
134
+ fi
0 commit comments