From 8a6db8082d77e5b87e3376aee49a7b4ceaa1eac4 Mon Sep 17 00:00:00 2001 From: charlesdrotar Date: Fri, 11 Nov 2016 11:10:43 -0600 Subject: [PATCH] modify PATH to handle Python3 vs. Python2 conda paths --- build_tools/travis/install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build_tools/travis/install.sh b/build_tools/travis/install.sh index ef140d0..dc9a02d 100644 --- a/build_tools/travis/install.sh +++ b/build_tools/travis/install.sh @@ -29,8 +29,14 @@ if [[ "$DISTRIB" == "conda" ]]; then fi chmod +x miniconda.sh && ./miniconda.sh -b cd .. - echo $PREFIX - export PATH=$PREFIX/bin:$PATH + + # Set conda command relative to miniconda version. + if [[ "$PYTHON_VERSION" == "2.7" ]]; then + export PATH=/home/travis/miniconda/bin:$PATH + fi + if [[ "$PYTHON_VERSION" == "3.5" ]]; then + export PATH=/home/travis/miniconda3/bin:$PATH + fi conda update --yes conda popd