]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBUNTU: [Packaging] annotations: prevent generating .pyc files on import
authorAndrea Righi <andrea.righi@canonical.com>
Mon, 5 Dec 2022 11:51:25 +0000 (12:51 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:58:11 +0000 (15:58 +0100)
commit0db9857d0f8426ddd4490030aeb299f53a55fcf5
tree6a0dde1793684412bb4afe4700457e79be7f7fb9
parent641d5fc8af4f27c1088091c9edabfa5d9b1e5c8b
UBUNTU: [Packaging] annotations: prevent generating .pyc files on import

We may end up adding these files to our git repos by mistake, so simply
prevent generating them in advance.

There's a tiny performance penalty with this change, because python
needs to re-generate the bytecode on-the-fly every time the annotations
script is called, but this overhead is absolutely negligible compared
the rest of the kernel build time.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
debian/scripts/misc/annotations