From 45c8d719f28f313d3f3c69e94fdf96004d2e9aac Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Thu, 30 Nov 2023 23:26:39 -0800 Subject: [PATCH] Use older pip to fix Python 2 CI --- setup_ci.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup_ci.sh b/setup_ci.sh index 673996b..5a86ff1 100755 --- a/setup_ci.sh +++ b/setup_ci.sh @@ -20,7 +20,13 @@ else IMP_CONDA="imp" fi -conda create --yes -q -n python${python_version} -c salilab python=${python_version} scipy matplotlib ${IMP_CONDA} +if [ ${python_version} = "2.7" ]; then + pip="pip<=19.3.1" +else + pip="pip" +fi + +conda create --yes -q -n python${python_version} -c salilab python=${python_version} scipy matplotlib ${pip} ${IMP_CONDA} eval "$(conda shell.bash hook)" conda activate python${python_version}