I ran into a couple issues when building a debian package for nodejs.
I took the quick and easy solution in all cases. I didn’t resolve the *.pyc issue, I simply started with a clean directory for each pass. The rest of the solutions came by making a barebones build run via debian/rules:
#!/usr/bin/make -f %: dh $@ override_dh_auto_configure: ./configure --prefix /usr override_dh_auto_make: make override_dh_auto_test:
This forces debuild to use the simple ‘make’ command and pass no additional parameters, to skip the auto_test phase, and to use the simple ‘./configure –prefix /usr’ configure command instead of its usual configure.
Other than the specifics of the debian/rules file, you can follow general debuild instructions.