mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user