#!/bin/bash

mkdir -p ${SP_DIR}/matplotlib/backends/web_backend
cp -r jquery-ui-1.12.1 ${SP_DIR}/matplotlib/backends/web_backend/

cp setup.cfg.template setup.cfg

sed -i -e 's/\/usr\/local/$PREFIX/g' setupext.py

$PYTHON setup.py install --old-and-unmanageable
$PYTHON $RECIPE_DIR/fix_version_string.py

rm -f $SP_DIR/*.pth
rm -rf $SP_DIR/PyQt5
rm -rf $SP_DIR/__pycache__
rm -rf $PREFIX/bin/nose*
