Mercurial > hg > MakeItSo
comparison makeitso/python_package/INSTALL.sh @ 96:cc17537254d2
add an install script template
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 09:58:10 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
95:e74baa8e6df4 | 96:cc17537254d2 |
---|---|
1 #!/usr/bin/bash | |
2 | |
3 # installation script for {{project}} | |
4 # {{description}} | |
5 | |
6 REPO='{{repo}}' | |
7 DEST='{{project}}' # name of the virtualenv | |
8 | |
9 if [ "$#" != "0" ] | |
10 then | |
11 DEST=$1 | |
12 fi | |
13 | |
14 if which virtualenv | |
15 then | |
16 virtualenv ${DEST} | |
17 else | |
18 curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST} | |
19 fi | |
20 cd ${DEST} | |
21 . bin/activate # linux only | |
22 mkdir src | |
23 cd src | |
24 hg clone ${REPO} | |
25 cd {{project}} | |
26 python setup.py develop |