Commit 51e2b855 authored by Jonathan Harker's avatar Jonathan Harker

Set up Python virtual environment.

parent 5142f5bf
......@@ -80,6 +80,21 @@ else
exit -1
fi
# Set up the Python virtual environment
if [ -d $DIRNAME/venv ]
then
echo "Python virtual environment already exists, skipping."
else
echo "${bold}Setting up Python virtual environment...${normal}"
# TODO: If this fails, see README about installing from the wheelhouse.
virtualenv $DIRNAME/venv
. $DIRNAME/venv/bin/activate
pip install -r $DIRNAME/requirements.txt || \
echo "${bold}*** ERROR: pip install failed, you may need to use a wheelhouse.${normal}"
deactivate
fi
# Make the sitelogs directory...
mkdir -p /var/log/sitelogs/mahara-manual-sphinx
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment