CI fix arm64 Cicle CI build by pinning pip
@@ -41,9 +41,14 @@ mamba update --yes conda
mamba create -n testenv --yes $(get_dep python $PYTHON_VERSION)
source activate testenv
-# Use the latest by default
+# pin pip to 22.0.4 because pip 22.1 validates build dependencies in
+# pyproject.toml. oldest-supported-numpy is part of the build dependencies in
+# pyproject.toml so using pip 22.1 will cause an error since
+# oldest-supported-numpy is not really meant to be installed in the
+# environment. See https://github.com/scikit-learn/scikit-learn/pull/23336 for
+# more details.
mamba install --verbose -y ccache \
- pip \
+ pip==22.0.4 \
$(get_dep numpy $NUMPY_VERSION) \
$(get_dep scipy $SCIPY_VERSION) \
$(get_dep cython $CYTHON_VERSION) \
@@ -73,8 +78,7 @@ export SKLEARN_BUILD_PARALLEL=$(($N_CORES + 1))
# Disable the build isolation and build in the tree so that the same folder can be
# cached between CI runs.
-# TODO: remove the '--use-feature' flag when made obsolete in pip 21.3.
-pip install --verbose --no-build-isolation --use-feature=in-tree-build .
+pip install --verbose --no-build-isolation .
# Report cache usage
ccache -s --verbose
