Skip to content

Commit

Permalink
modify PATH to handle Python3 vs. Python2 conda paths
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesdrotar committed Nov 11, 2016
1 parent c7ee551 commit 8a6db80
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build_tools/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a6db80

Please sign in to comment.