koder aka kdanilov | 8fbb27f | 2015-07-17 22:23:31 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | FULL="$1" |
| 4 | |
| 5 | function 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 | |
| 16 | function 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 | |
| 26 | if which apt-get >/dev/null; then |
| 27 | install_apt |
| 28 | else |
| 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 |
| 35 | fi |
| 36 | |
| 37 | pip install -r requirements.txt |
| 38 | |
| 39 | if [ "$FULL" == "--full" ] ; then |
| 40 | pip install oktest iso8601==0.1.10 |
| 41 | fi |