--- a/project.py 2020-09-27 14:28:27.338774698 +0700 +++ b/project.py 2020-09-27 14:28:29.317795099 +0700 @@ -51,6 +51,15 @@ _QOpenGLFunctions_2_1, _QOpenGLFunctions_4_1_Core, _QOpenGLFunctions_ES2, pylupdate, pyrcc] + def run_command(self, args, *, fatal=True): + """ Run a command and display the output if requested. """ + qemu_machine = os.environ.get("XBPS_TARGET_QEMU_MACHINE") + builddir = os.environ.get("XBPS_BUILDDIR") + if qemu_machine and args[0].startswith(os.path.join(builddir, "PyQt5")): + qemu = "qemu-{}-static".format(qemu_machine) + args.insert(0, qemu) + super().run_command(args, fatal=fatal) + def apply_user_defaults(self, tool): """ Set default values where needed. """