diff INSTALL.sh @ 0:6fa6d987b3af

initial commit of pyloader
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 03 May 2011 08:06:48 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/INSTALL.sh	Tue May 03 08:06:48 2011 -0700
@@ -0,0 +1,27 @@
+#!/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
+