if [ -z "$SAGE_LOCAL" ]; then
    echo "Error: SAGE_LOCAL undefined - exiting ..."
    echo "Maybe run 'sage -sh'?"
    exit 1
fi

success() {
    if [ $? -ne 0 ]; then
        echo $1
        exit 1
    fi
}

# Install new version
cd src

sdh_pip_install .
success 'Error installing Jinja2'

### The Jinja2 docs use Sphinx which requires Jinja2... do not build!
# make -C docs html
