@@ -88,8 +88,7 @@ elif [[ "$DISTRIB" == "conda-pip-latest" ]]; then
88
88
# we use pypi to test against the latest releases of the dependencies.
89
89
# conda is still used as a convenient way to install Python and pip.
90
90
make_conda " python=$PYTHON_VERSION "
91
- python -m pip install -U pip
92
- python -m pip install numpy scipy cython joblib
91
+ # python -m pip install -U pip
93
92
python -m pip install pytest==$PYTEST_VERSION pytest-cov pytest-xdist
94
93
python -m pip install pandas matplotlib pyamg
95
94
# do not install dependencies for lightgbm since it requires scikit-learn
@@ -120,7 +119,15 @@ except ImportError:
120
119
"
121
120
python -m pip list
122
121
123
- # Use setup.py instead of `pip install -e .` to be able to pass the -j flag
124
- # to speed-up the building multicore CI machines.
125
- python setup.py build_ext --inplace -j 3
126
- python setup.py develop
122
+ if [[ " $DISTRIB " == " conda-pip-latest" ]]; then
123
+ # Check that pip can automatically install the build dependencies from
124
+ # pyproject.toml using an isolated build environment:
125
+ pip install --verbose --editable .
126
+ else
127
+ # Use the pre-installed build dependencies and build directly in the
128
+ # current environment.
129
+ # Use setup.py instead of `pip install -e .` to be able to pass the -j flag
130
+ # to speed-up the building multicore CI machines.
131
+ python setup.py build_ext --inplace -j 3
132
+ python setup.py develop
133
+ fi
0 commit comments