Skip to content

Commit 2b6edca

Browse files
committed
Try fixing homebrew / system installs
1 parent 220ff4f commit 2b6edca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

travis_tools.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ MACPORTS_PY_PREFIX=$MACPORTS_PREFIX$MACPYTHON_PY_PREFIX
2828
# https://lists.macosforge.org/pipermail/macports-users/2014-June/035672.html
2929
PORT_INSTALL="sudo port -q install"
3030
NIPY_WHEELHOUSE=https://nipy.bic.berkeley.edu/scipy_installers
31+
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
32+
3133

3234
function get_osx_version {
3335
# Echo OSX version
@@ -202,7 +204,8 @@ function patch_sys_python {
202204

203205
function system_install_pip {
204206
# Install pip into system python
205-
sudo easy_install pip
207+
curl -LO $GET_PIP_URL
208+
sudo python get_pip.py
206209
PIP_CMD="sudo /usr/local/bin/pip"
207210
}
208211

@@ -276,6 +279,8 @@ function get_python_environment {
276279
if [ -n "$venv_dir" ]; then
277280
install_virtualenv
278281
make_workon_venv $venv_dir
282+
else # Need sudo for pip installs
283+
PIP_CMD="sudo $PIP_CMD"
279284
fi
280285
;;
281286
system)

0 commit comments

Comments
 (0)