#!/bin/bash

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*
