# Since we use environment vars we have to generate setup.cfg

echo "[build_ext]" > src/setup.cfg

# (I tried putting quotes around $SAGE_LOCAL to allow for spaces in
# the path---which is never used but is a good habit to support---but
# that simply does not work. Sorry.)

echo "library_dirs = $SAGE_LOCAL/lib/" >> src/setup.cfg
echo "include_dirs = $SAGE_LOCAL/include/" >> src/setup.cfg

echo "[configure]" >> src/setup.cfg
echo "zmq = $SAGE_LOCAL" >> src/setup.cfg

cd src

# Configure and install
sdh_pip_install .
