mitmproxy/dev.sh

18 lines
459 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
2016-12-23 19:30:04 +00:00
PYVERSION=${1:-3.5}
VENV="venv$PYVERSION"
echo "Creating dev environment in $VENV using Python $PYVERSION"
2016-11-10 07:50:21 +00:00
python$PYVERSION -m venv "$VENV"
. "$VENV/bin/activate"
2016-06-03 01:47:40 +00:00
pip$PYVERSION install -U pip setuptools
pip$PYVERSION install -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\`"