summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xvenv.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/venv.sh b/venv.sh
new file mode 100755
index 0000000..627a3fb
--- /dev/null
+++ b/venv.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+VENV_DIR='./venv'
+
+# remove egg directories.
+rm -rf *.egg-info
+
+# backup ol' virtualenv directory if it exists.
+if [ -d $VENV_DIR ]; then
+ mv $VENV_DIR "$VENV_DIR.$(date +%s)"
+fi
+
+virtualenv --python=python3 $VENV_DIR &&
+ echo "Initialized virtualenv, run" &&
+ echo " source $VENV_DIR/bin/activate" &&
+ echo "to activate the virtual environment."