https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision 3c00116f14781fe5edb3856c9680805c40f79fec authored by Bryna Hazelton on 04 March 2020, 17:44:28 UTC, committed by Bryna Hazelton on 04 March 2020, 22:55:35 UTC
1 parent 5b7762d
Raw File
Tip revision: 3c00116f14781fe5edb3856c9680805c40f79fec authored by Bryna Hazelton on 04 March 2020, 17:44:28 UTC
fix markdown links
Tip revision: 3c00116
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
# try commenting out the conda update call to see if it fixes issues on mac tests
# 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
back to top