From 9b79d68cc6dfdf4bc1a27c060e148cc55081bce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ku=C5=BAnia?= Date: Sun, 10 Dec 2023 14:17:59 +0100 Subject: [PATCH] setup: Add yet another kaitai compiler name variant The kaitai compiler name is inconsistent across operating systems. Added another name that can be encountered in the wild. --- setup.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 0f3b493..c95d259 100644 --- a/setup.py +++ b/setup.py @@ -48,10 +48,12 @@ def run(self): "speedtools.parsers", str(source), ] - try: - self.spawn(["ksc"] + args) - except ExecError: - self.spawn(["kaitai-struct-compiler.bat"] + args) + executables = ["ksc", "kaitai-struct-compiler", "kaitai-struct-compiler.bat"] + for executable in executables: + try: + self.spawn([executable] + args) + except ExecError: + pass def get_output_mapping(self): mapping = {}