()
| 85 | |
| 86 | |
| 87 | def main() -> int: |
| 88 | command = build_args(sys.argv[1:]) |
| 89 | print(" ".join(command), flush=True) |
| 90 | |
| 91 | process = subprocess.Popen(command) |
| 92 | try: |
| 93 | while True: |
| 94 | try: |
| 95 | return process.wait(timeout=KEEPALIVE_INTERVAL_SECONDS) |
| 96 | except subprocess.TimeoutExpired: |
| 97 | print("Still running Nuitka build...", flush=True) |
| 98 | except KeyboardInterrupt: |
| 99 | process.terminate() |
| 100 | raise |
| 101 | |
| 102 | |
| 103 | if __name__ == "__main__": |