mitmproxy/dev.sh

18 lines
470 B
Bash
Raw Normal View History

#!/bin/sh
2015-06-24 01:50:51 +00:00
set -e
2016-06-03 01:42:15 +00:00
set -x
PYVERSION=$1
VENV="venv$1"
echo "Creating dev environment in $VENV using Python $PYVERSION"
python$PYVERSION -m virtualenv "$VENV" --always-copy
. "$VENV/bin/activate"
pip$PYVERSION install -q -U pip setuptools
pip$PYVERSION install -q -r requirements.txt
2015-03-14 02:08:34 +00:00
echo ""
echo "* Virtualenv created in $VENV and all dependencies installed."
echo "* You can now activate the $(python --version) virtualenv with this command: \`. $VENV/bin/activate\`"