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

# Write a configuration file to src/setup.cfg
python make-setup-config.py

cd src

# Finally install
sdh_pip_install .

if [ $? -ne 0 ]; then
    echo "Error installing matplotlib package."
    exit 1
fi
