forked from mozilla/briar-patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_venv.sh
executable file
·51 lines (35 loc) · 1.05 KB
/
install_venv.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
48
49
50
#!/bin/bash
if [ -z $1 ]; then
echo "please specify a target directory to install into"
echo "usage: $0 target"
exit 1
fi
TARGET=$1
PYTHON_EXE=python2.7
mkdir ${TARGET}
if [ ! -d $TARGET ]; then
echo "unable to create ${TARGET}"
exit 2
fi
set -x
virtualenv ${TARGET} --python=${PYTHON_EXE}
cd ${TARGET}
if [ -e bin/activate ]; then
. bin/activate
python -V
pip install redis
pip install requests
pip install dnspython
pip install paramiko
pip install keyring
hg clone http://hg.mozilla.org/build/tools
TOOLS=`pwd`/tools
git clone git://github.com/mozilla/briar-patch.git
ln -s briar-patch/releng .
ln -s briar-patch/kittenherder.py .
ln -s briar-patch/kitten.py .
echo "{ \"keystore\": \"memory\", \"ldapuser\": \"no_ldap\", \"tools\": \"${TOOLS}\"}" > ./kittenherder.cfg
cp kittenherder.cfg kitten.cfg
echo "The virtualenv inside of ${TARGET} is setup. Please remember to source bin/activite before using"
echo "Your keystore is set to \"memory\" currently, you will be prompted for the cltbld password each run"
fi