Merge "Install python if it's not there"

This commit is contained in:
Jenkins 2016-03-14 17:23:03 +00:00 committed by Gerrit Code Review
commit d4e765189c

View File

@ -22,6 +22,9 @@ if [ -x '/usr/bin/apt-get' ]; then
if ! $(git --version &>/dev/null) ; then if ! $(git --version &>/dev/null) ; then
sudo -H apt-get -y install git sudo -H apt-get -y install git
fi fi
if ! $(python --version &>/dev/null); then
sudo -H apt-get -y install python-minimal
fi
if ! $(dpkg -l libpython-dev &>/dev/null); then if ! $(dpkg -l libpython-dev &>/dev/null); then
sudo -H apt-get -y install libpython-dev sudo -H apt-get -y install libpython-dev
fi fi
@ -34,6 +37,9 @@ if [ -x '/usr/bin/apt-get' ]; then
fi fi
fi fi
elif [ -x '/usr/bin/yum' ]; then elif [ -x '/usr/bin/yum' ]; then
if ! $(python --version $>/dev/null); then
sudo -H yum -y install python
fi
if ! yum -q list installed python-devel; then if ! yum -q list installed python-devel; then
sudo -H yum -y install python-devel sudo -H yum -y install python-devel
fi fi