Re: Where can build scripts be found?
For investigating a crash, you may not need to recompile: first
try installing the debug symbols package (icedove-dbg).
For already known bugs, see
If you still want to recompile, you're missing
$ sudo apt-get install build-essential
but a Python error isn't what I'd expect from missing that
(it's mostly the C/C++ compiler).
Official packages are built inside a chroot using sbuild
( https://www.debian.org/devel/buildd/ ,
but plain dpkg-buildpackage / debuild should also work.