Skip to content

Commit

Permalink
Update setup_ci to make it same as pmi
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-arvindekar committed Apr 8, 2024
1 parent 0d67dec commit e91250f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tools/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,25 @@ fi

python_version=$1

# Don't install conda's gnuplot on Python 2.7; it conflicts with the IMP package
if [ "${python_version}" != "2.7" ]; then
gnuplot="gnuplot"
pip="pip"
else
if [ ${python_version} = "2.7" ]; then
BOOST=""
pip="pip<=19.3.1"
# Python.h includes crypt.h, which is no longer provided by default
crypt="libxcrypt"
else
BOOST="libboost-devel"
pip="pip"
crypt=""
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 pandas pyrmsd imp-nightly cmake ${gnuplot}
conda create --yes -q -n python${python_version} -c salilab -c conda-forge python=${python_version} ${pip} ${crypt} scipy matplotlib imp-nightly ${BOOST} gxx_linux-64 eigen cereal swig cmake
eval "$(conda shell.bash hook)"
conda activate python${python_version}

if [ ${python_version} = "2.7" ]; then
# pytest-flake8 1.1.0 tries to import contextlib.redirect_stdout, which
# isn't present in Python 2
pip install pytest-cov 'coverage<=6.2' 'pytest-flake8<1.1'
pip install pytest-cov coverage 'pytest-flake8<1.1'
else
pip install pytest-cov coverage pytest-flake8
fi

0 comments on commit e91250f

Please sign in to comment.