2016-05-25 17:42:22 +00:00
|
|
|
#!/bin/sh
|
2015-06-24 01:50:51 +00:00
|
|
|
set -e
|
2016-06-03 01:42:15 +00:00
|
|
|
set -x
|
2016-05-25 17:42:22 +00:00
|
|
|
|
2016-05-25 21:35:21 +00:00
|
|
|
PYVERSION=$1
|
|
|
|
VENV="venv$1"
|
2015-03-12 11:12:15 +00:00
|
|
|
|
2016-05-25 21:35:21 +00:00
|
|
|
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 ""
|
2016-05-25 17:42:22 +00:00
|
|
|
echo "* Virtualenv created in $VENV and all dependencies installed."
|
|
|
|
echo "* You can now activate the $(python --version) virtualenv with this command: \`. $VENV/bin/activate\`"
|