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 committed Dec 3, 2023
1 parent 9f3a414 commit fa6295c
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 scipy matplotlib imp-nightly ${BOOST} gxx_linux-64 eigen cereal swig cmake
conda create --yes -q -n python${python_version} -c salilab -c conda-forge python=${python_version} ${pip} scipy matplotlib imp-nightly ${BOOST} gxx_linux-64 eigen cereal swig cmake
eval "$(conda shell.bash hook)"
conda activate python${python_version}

Expand Down

0 comments on commit fa6295c

Please sign in to comment.