From 14804ce689497f49b21012f2263828f89df83330 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 6 Apr 2012 00:23:28 +0100 Subject: [PATCH] Add some scripts for installing launchpadlib in a virtualenv --- .gitignore | 1 + tools/install_venv.sh | 4 ++++ tools/pip-requires | 1 + tools/with_venv.sh | 4 ++++ 4 files changed, 10 insertions(+) create mode 100755 tools/install_venv.sh create mode 100644 tools/pip-requires create mode 100755 tools/with_venv.sh diff --git a/.gitignore b/.gitignore index f3d74a9..fecace0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc *~ +.venv diff --git a/tools/install_venv.sh b/tools/install_venv.sh new file mode 100755 index 0000000..70da52f --- /dev/null +++ b/tools/install_venv.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +virtualenv .venv +./tools/with_venv.sh pip install --upgrade -r tools/pip-requires diff --git a/tools/pip-requires b/tools/pip-requires new file mode 100644 index 0000000..9dc228f --- /dev/null +++ b/tools/pip-requires @@ -0,0 +1 @@ +launchpadlib diff --git a/tools/with_venv.sh b/tools/with_venv.sh new file mode 100755 index 0000000..c8d2940 --- /dev/null +++ b/tools/with_venv.sh @@ -0,0 +1,4 @@ +#!/bin/bash +TOOLS=`dirname $0` +VENV=$TOOLS/../.venv +source $VENV/bin/activate && $@