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

cd src
echo "building ore_algebra"

sdh_pip_install .

if [ $? -ne 0 ]; then
    echo >&2 "Error building ore_algebra"
    exit 1
fi
