annotations: prevent generating .pyc files on import
authorAndrea Righi <andrea.righi@canonical.com>
Mon, 5 Dec 2022 11:45:53 +0000 (12:45 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 30 Jan 2023 08:12:28 +0000 (09:12 +0100)
commitab702f533ba11faad942e30ed8599e16b686c83f
tree434f7ce217346e7f643cf36179fe5007c97325c9
parent82e74d16edc4b331d67ca867c6666626ac320842
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>
annotations