Mercurial > hg > MakeItSo
annotate makeitso/python_package/INSTALL.sh @ 123:8db34885ebe4
tame that beast called doctest
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 19 May 2011 10:56:16 -0700 |
parents | cc17537254d2 |
children |
rev | line source |
---|---|
96
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
1 #!/usr/bin/bash |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
3 # installation script for {{project}} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
4 # {{description}} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
5 |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
6 REPO='{{repo}}' |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
7 DEST='{{project}}' # name of the virtualenv |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
8 |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
9 if [ "$#" != "0" ] |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
10 then |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
11 DEST=$1 |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 fi |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
13 |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
14 if which virtualenv |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
15 then |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
16 virtualenv ${DEST} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
17 else |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
18 curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
19 fi |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
20 cd ${DEST} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
21 . bin/activate # linux only |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
22 mkdir src |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
23 cd src |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
24 hg clone ${REPO} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
25 cd {{project}} |
cc17537254d2
add an install script template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
26 python setup.py develop |