Debian packing Python Policy says that postinst should generate pyc files and prerm should remove them.
This bug is about cleanup, so see bug 3846 for a possible reason to enable compiling on installation.
*** Bug 7586 has been marked as a duplicate of this bug. ***
See bug 7586 for details on how this works for normal Debian packages.