Commit 4523f8b5 authored by Matthew Brett's avatar Matthew Brett
Browse files

Hack allowing pip to install for Python 2.6 on OSX

parent f49e1783
...@@ -202,10 +202,14 @@ function install_pip { ...@@ -202,10 +202,14 @@ function install_pip {
check_python check_python
mkdir -p $DOWNLOADS_SDIR mkdir -p $DOWNLOADS_SDIR
curl $GET_PIP_URL > $DOWNLOADS_SDIR/get-pip.py curl $GET_PIP_URL > $DOWNLOADS_SDIR/get-pip.py
# Travis VMS now install pip for system python by default - force install # Python 2.6 will fail SSL check
# even if installed already
sudo $PYTHON_EXE $DOWNLOADS_SDIR/get-pip.py --ignore-installed
local py_mm=`get_py_mm` local py_mm=`get_py_mm`
if [ "$py_mm" == "2.6" ]; then
local pip_args="--trusted-host=pypi.python.org"
fi
# Travis VMS now install pip for system python by default - force install
# even if installed already.
sudo $PYTHON_EXE $DOWNLOADS_SDIR/get-pip.py --ignore-installed $pip_args
PIP_CMD="sudo `dirname $PYTHON_EXE`/pip$py_mm" PIP_CMD="sudo `dirname $PYTHON_EXE`/pip$py_mm"
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment