Run alternatives pip -> pip-python

Checks to see if python-pip is installed and installs
an alternatives link at /usr/bin/pip

Change-Id: I858ac2597d3cacc79144a8b345faf6a2f7dee26e
This commit is contained in:
Steve Baker 2013-02-22 12:39:10 +13:00
parent e4957e37a9
commit 48e22d91b6

View File

@ -18,4 +18,8 @@
set -e
yum -y install $(map-packages "$@")
for pkg in "$@"; do
if [[ "$pkg" == "python-pip" ]] ; then
alternatives --install /usr/bin/pip pip /usr/bin/pip-python 10
fi
done