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

Set up Python virtual environment.

parent 5142f5bf
......@@ -80,6 +80,21 @@ else
exit -1
# Set up the Python virtual environment
if [ -d $DIRNAME/venv ]
echo "Python virtual environment already exists, skipping."
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}"
# Make the sitelogs directory...
mkdir -p /var/log/sitelogs/mahara-manual-sphinx
Supports Markdown
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