]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure we load pefile early
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 10 Aug 2023 14:59:03 +0000 (16:59 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 10 Aug 2023 15:35:07 +0000 (17:35 +0200)
Otherwise we'll run into trouble later if we're using a tools tree.

mkosi/__init__.py

index abe7c9ed90a58e7131b4032b0d87af5bd1272f04..ee0d809567012f6fc0fc84fb5bfe0056b6688317 100644 (file)
@@ -1764,6 +1764,7 @@ def run_verb(args: MkosiArgs, presets: Sequence[MkosiConfig]) -> None:
     # execution are forcibly loaded early here.
     try_import("importlib.readers")
     try_import("importlib.resources.readers")
+    try_import("pefile")
     for config in presets:
         try_import(f"mkosi.distributions.{config.distribution}")