diff options
author | rsiddharth <s@ricketyspace.net> | 2017-12-01 13:22:23 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2017-12-01 13:22:23 +0000 |
commit | 1e7e2f9b4b9a501dd64d156f5b770ddd8f349f5b (patch) | |
tree | 5b122437c39008a3da27d79cab91bcce81127446 | |
parent | b5bc0fc9cbe3df899a12ec1bfe90bd8fa21ddd74 (diff) |
venv.sh: New file.
-rwxr-xr-x | venv.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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." |