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>
# Manage Ubuntu kernel .config and annotations
# Copyright © 2022 Canonical Ltd.
-import argparse
import sys
+sys.dont_write_bytecode = True
+import argparse
import json
from kconfig.annotations import Annotation, KConfig