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