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

# Old installations of ipython can leave a symlink which can interfere
# with proper installation.
rm -f "$SAGE_LOCAL"/bin/ipython

cd src

sdh_pip_install .

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