6 BIN_HOME=/opt/yardstick
7 VAR_HOME=/var/lib/yardstick
8 rm -rf $BIN_HOME; mkdir -p $BIN_HOME
9 rm -rf $VAR_HOME; mkdir -p $VAR_HOME
11 apt-get install -y python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev
13 #apt-get install python-virtualenv cannot work
14 #use pip to work around the issue
16 pip install virtualenv
18 # create python virtual env
21 export PS1="yardstick"
22 source $VAR_HOME/bin/activate
24 easy_install -U setuptools
28 curl http://$HOST:8080/plugins/fuel-plugin-yardstick-1.0/repositories/ubuntu/yardstick.tar.gz | tar xzvf -
30 python setup.py develop