view makeitso/python_package/INSTALL.sh @ 99:d9c6e26a42ff

fix up interactivity of API template a bit. still doesnt quite work
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 11:53:02 -0800
parents cc17537254d2
children
line wrap: on
line source

#!/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