pythonubuntudebiandeblintian

Over-riding Debian/Ubuntu's lintian profile


I have written a proprietary application that needs to install some .pyo files. When I create a .deb from the app, lintian complains that package-installs-python-bytecode. I tried adding an override, but apparently this tag is marked as non-overridable by ftp-master-auto-reject.profile in /usr/share/lintian/profiles/debian. Since this tag is considered an Error, Ubuntu Software Center complains about the package.

Is there a clean way to override this tag so that Ubuntu Software Center no longer complains?


Solution

  • I would change the deb generation steps to either (or both) -

    1. Move the installation and generation of the python bytecode into the postinst section (7.6),
    2. Use pip instead of, or with, deb.

    tar up the python file(s), base64 or otherwise encode the tar file into the postinst script, extract and install from there and you're done!