Use system version of Python 2.7 on OS X on Travis

This commit is contained in:
Dean Moldovan 2016-08-02 00:42:07 +02:00
parent 3ac1275248
commit 880a7e4d0a

View File

@ -36,8 +36,12 @@ install:
pip install --user --upgrade pip virtualenv pip install --user --upgrade pip virtualenv
virtualenv -p python$PYTHON venv virtualenv -p python$PYTHON venv
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
if [ "${PYTHON:0:1}" = "3" ]; then PMAJOR=3; fi if [ "${PYTHON:0:1}" = "3" ]; then
brew update; brew install python$PMAJOR; PMAJOR=3; brew update; brew install python$PMAJOR;
else
curl -fsSL -O https://bootstrap.pypa.io/get-pip.py
sudo -H python get-pip.py
fi
pip$PMAJOR install --user --upgrade pip virtualenv pip$PMAJOR install --user --upgrade pip virtualenv
python$PMAJOR -m virtualenv venv python$PMAJOR -m virtualenv venv
fi fi