view INSTALL.sh @ 87:29ca60f428cc

STUB: tests/test.py tests/test_include.txt
author Jeff Hammel <k0scist@gmail.com>
date Fri, 21 Mar 2014 22:27:51 -0700
parents 6fa6d987b3af
children
line wrap: on
line source

#!/usr/bin/bash

# installation script for pyloader
# Load python attributes from a string

REPO='http://k0s.org/hg/pyloader'
DEST='pyloader' # 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 pyloader
python setup.py develop