Revision 636372672acb2e3fbc80259a38fe94b8e809a675 authored by Bryna Hazelton on 24 March 2020, 22:16:56 UTC, committed by Paul La Plante on 24 March 2020, 23:37:51 UTC
1 parent c6046d2
install_conda.sh
set -xe
# want 1 script to rule them all
# but this part is not needed on MACOS
if [[ ! $OS == 'macos-latest' ]]; then
if [ ! -z "$WITH_SUDO" ]; then
sudo apt-get update
sudo apt-get install -y gcc g++ curl
else
apt-get update
apt-get install -y gcc g++ curl
fi
fi
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
conda create --name=${ENV_NAME} python=$PYTHON --quiet
conda env update -n ${ENV_NAME} -f ci/${ENV_NAME}.yml
source activate ${ENV_NAME}
# Mac OSX is having some trouble on python 3.8 with ncurses
# not being up to date. Trye manually updating it.
if [[ $OS == 'macos-latest' ]]; then
conda update -n ${ENV_NAME} -c conda-forge ncurses
fi
conda list -n ${ENV_NAME}
# check that the python version matches the desired one; exit immediately if not
PYVER=`python -c "from __future__ import print_function; import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
if [[ $PYVER != $PYTHON ]]; then
exit 1;
fi

Computing file changes ...