Hi,
the problem appears during clear phase, not on configure.
Using BEFORE_CLEAN instead BEFORE_CONFIGURE solves
this issue for me.
The patch that contains needed changes is attached.
I had tested it on mips, mipsel and amd64.
Could you please consider including this changes?
diff -uNr pymad-0.8.orig/debian/rules pymad-0.8/debian/rules
--- pymad-0.8.orig/debian/rules 2015-03-14 11:15:27.000000000 +0000
+++ pymad-0.8/debian/rules 2015-05-18 18:00:17.000000000 +0000
@@ -5,7 +5,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=pymad
-export PYBUILD_BEFORE_CONFIGURE={interpreter} ./config_unix.py --prefix=/usr
+export PYBUILD_BEFORE_CLEAN={interpreter} ./config_unix.py --prefix=/usr
%:
dh $@ --with=python2 --buildsystem=pybuild