#!/usr/bin/env bash

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

cd src

$PIP_INSTALL .

if [ $? -ne 0 ]; then
    echo "Error installing backports.ssl_match_hostname ... exiting"
    exit 1
fi
