# HG changeset patch # User Jeff Hammel # Date 1294768690 28800 # Node ID cc17537254d2c12b75bdf56b127712e9cad9f63d # Parent e74baa8e6df40dcb6ae8da66f44287ea99ffedd7 add an install script template diff -r e74baa8e6df4 -r cc17537254d2 makeitso/python_package/INSTALL.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makeitso/python_package/INSTALL.sh Tue Jan 11 09:58:10 2011 -0800 @@ -0,0 +1,26 @@ +#!/usr/bin/bash + +# installation script for {{project}} +# {{description}} + +REPO='{{repo}}' +DEST='{{project}}' # name of the virtualenv + +if [ "$#" != "0" ] +then + DEST=$1 +fi + +if which virtualenv +then + virtualenv ${DEST} +else + curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST} +fi +cd ${DEST} +. bin/activate # linux only +mkdir src +cd src +hg clone ${REPO} +cd {{project}} +python setup.py develop