Skip to content

Commit

Permalink
Use older pip to fix Python 2 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb authored Dec 3, 2023
1 parent 82392c8 commit a61f3e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a61f3e7

Please sign in to comment.