# HG changeset patch # User Jeff Hammel # Date 1372440750 25200 # Node ID b4e679b5a9c38bbab4a26044c23c0fb6816b6077 # Parent 915f88af9624695c24e65cea6515dc7e30823804 now kill diff -r 915f88af9624 -r b4e679b5a9c3 python/venvit2.py --- a/python/venvit2.py Fri Jun 28 10:32:21 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -import sys - -# class for VCS -# TODO: hg, git, ... - -# usage - -args = sys.argv[1:] -if len(args) != 1: - print "Usage: %prog " -fi - -# determine name of the package -NAME= -for i in /trunk /branches /tag -do - NAME=${NAME%%$i*} -done -NAME=${NAME%%/} # remove trailing slash -NAME=${NAME##*/} - -if svn info $1 2> /dev/null -then - CHECKOUT="svn co" -else - CHECKOUT="hg clone" -fi - -# create a virtualenv and install the software -VIRTUAL_ENV_LOCATION="${HOME}/virtualenv/virtualenv.py" -python ${VIRTUAL_ENV_LOCATION} ${NAME} -cd ${NAME} -source bin/activate -mkdir src/ -cd src/ -$CHECKOUT $1 ${NAME} -cd ${NAME} -python setup.py develop