summaryrefslogtreecommitdiffstats
path: root/venv.sh
blob: 627a3fb6c7908999433b2feb542c761ee7ec6da3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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."