mitmproxy/dev.sh

17 lines
463 B
Bash
Raw Normal View History

#!/bin/sh
2015-06-24 01:50:51 +00:00
set -e
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
2016-06-03 00:46:48 +00:00
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\`"