emacs-ipython-notebook/tools/makeenv.sh
John Miller 43b91785ac Cleanup
Remove unsupporting versions of Ipython for testing.
2016-04-22 14:59:34 +00:00

21 lines
341 B
Bash
Executable file

#!/bin/sh
env="$1"
req="$2"
activate=$env/bin/activate
if [ -z "$env" -o -z "$req" ]; then
echo "Usage:"
echo " $0 ENVIRONMENT REQUIREMENT"
exit 1
fi
if [ -e $activate ]; then
echo "virtualenv $env exists."
else
echo "Creating virtualenv $env."
virtualenv -v $env
fi
. $activate
pip install --requirement $req