Fix for Python3 via brew

Apparently with homebrew the correct package for python3 is now just
`python`; python 2 was relegated to 'python@2', and `python3` is an
alias for `python` (which needs to be upgraded rather than installed).
This commit is contained in:
Jason Rhinelander 2018-03-10 13:30:29 -04:00
parent 13c08072dc
commit 1ddfacbad1

View File

@ -138,7 +138,7 @@ before_install:
PY_CMD=python$PYTHON PY_CMD=python$PYTHON
if [ "$TRAVIS_OS_NAME" = "osx" ]; then if [ "$TRAVIS_OS_NAME" = "osx" ]; then
if [ "$PY" = "3" ]; then if [ "$PY" = "3" ]; then
brew update && brew install python$PY; brew update && brew upgrade python
else else
curl -fsSL https://bootstrap.pypa.io/get-pip.py | $PY_CMD - --user curl -fsSL https://bootstrap.pypa.io/get-pip.py | $PY_CMD - --user
fi fi