Files
i2p.newsxml/setup_venv.sh

20 lines
383 B
Bash
Raw Normal View History

2015-06-07 02:51:38 +00:00
#!/bin/sh
set -e
. ./etc/project.vars
if [ ! $venv ]; then
echo "ERROR: virtualenv not found!" >&2
exit 1
else
if [ ! -d $venv_dir ] ; then
if $venv --version | awk -F: '{if($2>20)print$2}' ; then
$venv $venv_dir
else
$venv --distribute $venv_dir
fi
2015-06-07 02:51:38 +00:00
fi
. $venv_dir/bin/activate
pip install -r etc/reqs.txt
fi