Quote Originally Posted by _sluimers_ View Post
I get an error when I try debuild -k<key> -S -sa:
make: *** No rule to make target `clean'.  Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1334:
dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed
scons: *** [test] Error 29
As the error suggests, you don't have a "clean" target in your Makefile. dpkg-buildpackage needs this so that your package can delete the helloworld.py if the user decides to remove the package later on.

If you read the first post carefully, you'll notice this line near the top of the example rules file:

include /usr/share/cdbs/1/rules/debhelper.mk
This line includes a lot of debhelper targets, including the missing "clean" one. Hopefully adding this line will resolve the issue you're seeing.