mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Use system version of Python 2.7 on OS X on Travis
This commit is contained in:
parent
3ac1275248
commit
880a7e4d0a
@ -36,8 +36,12 @@ install:
|
||||
pip install --user --upgrade pip virtualenv
|
||||
virtualenv -p python$PYTHON venv
|
||||
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||
if [ "${PYTHON:0:1}" = "3" ]; then PMAJOR=3; fi
|
||||
brew update; brew install python$PMAJOR;
|
||||
if [ "${PYTHON:0:1}" = "3" ]; then
|
||||
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
|
||||
python$PMAJOR -m virtualenv venv
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user