File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ MACPORTS_PY_PREFIX=$MACPORTS_PREFIX$MACPYTHON_PY_PREFIX
28
28
# https://lists.macosforge.org/pipermail/macports-users/2014-June/035672.html
29
29
PORT_INSTALL=" sudo port -q install"
30
30
NIPY_WHEELHOUSE=https://nipy.bic.berkeley.edu/scipy_installers
31
+ GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
32
+
31
33
32
34
function get_osx_version {
33
35
# Echo OSX version
@@ -202,7 +204,8 @@ function patch_sys_python {
202
204
203
205
function system_install_pip {
204
206
# Install pip into system python
205
- sudo easy_install pip
207
+ curl -LO $GET_PIP_URL
208
+ sudo python get_pip.py
206
209
PIP_CMD=" sudo /usr/local/bin/pip"
207
210
}
208
211
@@ -276,6 +279,8 @@ function get_python_environment {
276
279
if [ -n " $venv_dir " ]; then
277
280
install_virtualenv
278
281
make_workon_venv $venv_dir
282
+ else # Need sudo for pip installs
283
+ PIP_CMD=" sudo $PIP_CMD "
279
284
fi
280
285
;;
281
286
system)
You can’t perform that action at this time.
0 commit comments