-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfme_perf.sh
executable file
·47 lines (38 loc) · 903 Bytes
/
cfme_perf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
if hash dnf;
then
YUM=dnf
else
YUM=yum
fi
sudo $YUM install -y numpy \
python-virtualenv \
gcc \
postgresql-devel \
zeromq3-devel \
libxml2-devel \
libxslt-devel \
libcurl-devel \
redhat-rpm-config \
gcc-c++ \
python-virtualenv \
libffi-devel \
libpng \
libpng-devel \
freetype-devel \
openssl-devel \
libselinux-python \
yum \
sshpass
venv_path=$1
if [[ -z $venv_path ]]; then
venv_path="./.cfme_perf"
fi
if [[ ! -d $venv_path ]]; then
virtualenv -p python2 $venv_path
fi
echo "export PYTHONPATH='`pwd`'" | tee -a ${venv_path%/}/bin/activate
echo "export PYTHONDONTWRITEBYTECODE=yes" | tee -a ${venv_path%/}/bin/activate
. ${venv_path%/}/bin/activate
PYCURL_SSL_LIBRARY=nss pip install -Ur ./requirements.txt
echo "Run '. ${venv_path%/}/bin/activate' to load the virtualenv"