https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision ed17d87fccfb8b5a8b89cbf00d8a89a471ae623b authored by Paul La Plante on 25 August 2021, 16:23:01 UTC, committed by Bryna Hazelton on 15 September 2021, 20:25:57 UTC
1 parent f6c7c0b
Raw File
Tip revision: ed17d87fccfb8b5a8b89cbf00d8a89a471ae623b authored by Paul La Plante on 25 August 2021, 16:23:01 UTC
Add set_flags and set_nsamples methods and associated tests
Tip revision: ed17d87
install_conda.sh
set -xe

# want 1 script to rule them all
# but this part is not needed on MACOS or Windows
if [ ! $OS == 'macos-latest' ] && [ ! $OS == 'windows-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}

conda list -n ${ENV_NAME}
# check that the python version matches the desired one; exit immediately if not
PYVER=`python -c "import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
if [[ $PYVER != $PYTHON ]]; then
  exit 1;
fi
back to top