blob: 1fd97b4f9ab08043fdb6841ed677237c954cf9c5 [file] [log] [blame]
koder aka kdanilov8fbb27f2015-07-17 22:23:31 +03001#!/bin/bash
2
3FULL="$1"
4
5function install_apt() {
6 apt-get install -y python-openssl python-novaclient python-cinderclient \
7 python-keystoneclient python-glanceclient python-faulthandler \
8 python-pip
9
10 if [ "$FULL" == "--full" ] ; then
11 apt-get install -y python-scipy python-numpy python-matplotlib python-psutil
12 fi
13}
14
15
16function install_yum() {
17 yum -y install pyOpenSSL python-novaclient python-cinderclient \
18 python-keystoneclient python-glanceclient
19 python-pip
20
21 if [ "$FULL" == "--full" ] ; then
22 yum -y install scipy numpy python-matplotlib python-psutil
23 fi
24}
25
26if which apt-get >/dev/null; then
27 install_apt
28else
29 if which yum >/dev/null; then
30 install_yum
31 else
32 echo "Error: Neither apt-get, not yum installed. Can't install deps"
33 exit 1
34 fi
35fi
36
37pip install -r requirements.txt
38
39if [ "$FULL" == "--full" ] ; then
40 pip install oktest iso8601==0.1.10
41fi