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 = {}