@@ -88,8 +88,12 @@ elif [[ "$DISTRIB" == "conda-pip-latest" ]]; then
8888 # Since conda main channel usually lacks behind on the latest releases,
8989 # we use pypi to test against the latest releases of the dependencies.
9090 # 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:
9195 make_conda " python=$PYTHON_VERSION "
92- python -m pip install numpy scipy joblib cython
96+ python -m pip install -U pip
9397 python -m pip install pytest==$PYTEST_VERSION pytest-cov pytest-xdist
9498 python -m pip install pandas matplotlib pyamg
9599fi
@@ -117,5 +121,14 @@ except ImportError:
117121 print('pandas not installed')
118122"
119123python -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