From a61f3e7239e004d37d2ea2fbda892da7fcb35b9b Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Sun, 3 Dec 2023 08:50:14 -0800 Subject: [PATCH] Use older pip to fix Python 2 CI --- tools/setup_ci.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/setup_ci.sh b/tools/setup_ci.sh index d53eac3..b92f185 100755 --- a/tools/setup_ci.sh +++ b/tools/setup_ci.sh @@ -11,11 +11,13 @@ python_version=$1 if [ ${python_version} = "2.7" ]; then BOOST="" + pip="pip<=19.3.1" else BOOST="libboost-devel" + pip="pip" fi conda config --remove channels defaults # get conda-forge, not main, packages -conda create --yes -q -n python${python_version} -c salilab -c conda-forge python=${python_version} pip imp-nightly ${BOOST} gxx_linux-64 eigen cereal swig cmake numpy +conda create --yes -q -n python${python_version} -c salilab -c conda-forge python=${python_version} ${pip} imp-nightly ${BOOST} gxx_linux-64 eigen cereal swig cmake numpy eval "$(conda shell.bash hook)" conda activate python${python_version} pip install pytest-cov coverage