19 lines
760 B
Diff
19 lines
760 B
Diff
--- a/project.py
|
|
+++ b/project.py
|
|
@@ -57,6 +57,15 @@ class PyQt(PyQtProject):
|
|
_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, "python3-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. """
|
|
|