mitmproxy/dev.sh

18 lines
464 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"
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\`"