From 1e7e2f9b4b9a501dd64d156f5b770ddd8f349f5b Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Fri, 1 Dec 2017 13:22:23 +0000 Subject: venv.sh: New file. --- venv.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 venv.sh 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." -- cgit v1.2.3