Check for and install easy_install
On Ubuntu 14.04 at least, easy_install is not present by default. We need to check for it, and if its not there, add it so we can install pip. Added a comment block noting the bug and rationale for using the package manager to get a baseline setuptools. Change-Id: Icf5434e828ce6c15968d1f46c19a9e11b33f4ed6
This commit is contained in:
parent
c818324326
commit
9c110d176f
|
@ -5,6 +5,20 @@ if [ -x '/usr/bin/apt-get' ]; then
|
|||
if ! $(git --version &>/dev/null) ; then
|
||||
sudo -H apt-get -y install git
|
||||
fi
|
||||
# To install python packages, we need pip.
|
||||
#
|
||||
# We can't use the apt packaged version of pip since
|
||||
# older versions of pip are incompatible with
|
||||
# requests, one of our indirect dependencies (bug 1459947).
|
||||
#
|
||||
# So we use easy_install to install pip.
|
||||
#
|
||||
# But we may not have easy_install; if that's the case,
|
||||
# our bootstrap's bootstrap is to use apt to install
|
||||
# python-setuptools to get easy_install.
|
||||
if ! $(easy_install --version &>/dev/null) ; then
|
||||
sudo -H apt-get -y install python-setuptools
|
||||
fi
|
||||
elif [ -x '/usr/bin/yum' ]; then
|
||||
if ! yum -q list installed python-devel; then
|
||||
sudo -H yum -y install python-devel
|
||||
|
|
Loading…
Reference in New Issue