Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
4523f8b5
Commit
4523f8b5
authored
May 22, 2017
by
Matthew Brett
Browse files
Hack allowing pip to install for Python 2.6 on OSX
parent
f49e1783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
osx_utils.sh
osx_utils.sh
+7
-3
No files found.
osx_utils.sh
View file @
4523f8b5
...
@@ -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
"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment