From 3ad886e02436d0b0b6b8e33f192c2a151408f661 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 24 Feb 2017 15:15:01 +0100 Subject: [PATCH] Add helper to set up virtualenv and install requirements Signed-off-by: Knut Ahlers --- bin/venv | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/venv diff --git a/bin/venv b/bin/venv new file mode 100755 index 0000000..7ec1d5b --- /dev/null +++ b/bin/venv @@ -0,0 +1,10 @@ +#!/bin/bash + +set -ex +set -o pipefail + +[ -e .venv ] || virtualenv .venv +source .venv/bin/activate + +[ -f requirements.txt ] && pip install -r requirements.txt +