blob: 1fd97b4f9ab08043fdb6841ed677237c954cf9c5 [file] [log] [blame]
#!/bin/bash
FULL="$1"
function install_apt() {
apt-get install -y python-openssl python-novaclient python-cinderclient \
python-keystoneclient python-glanceclient python-faulthandler \
python-pip
if [ "$FULL" == "--full" ] ; then
apt-get install -y python-scipy python-numpy python-matplotlib python-psutil
fi
}
function install_yum() {
yum -y install pyOpenSSL python-novaclient python-cinderclient \
python-keystoneclient python-glanceclient
python-pip
if [ "$FULL" == "--full" ] ; then
yum -y install scipy numpy python-matplotlib python-psutil
fi
}
if which apt-get >/dev/null; then
install_apt
else
if which yum >/dev/null; then
install_yum
else
echo "Error: Neither apt-get, not yum installed. Can't install deps"
exit 1
fi
fi
pip install -r requirements.txt
if [ "$FULL" == "--full" ] ; then
pip install oktest iso8601==0.1.10
fi