Browse Source

configure: remove usage of subprocess.capture_output

... to restore compatiblity with Python 3.6.

This was initroduced in commit 177d049950,
which broke compilation on openSUSE Leap 15, which uses Python 3.6 als
default Python interpreter.

Fixes #28636

Signed-off-by: Olaf Hering <olaf@aepfle.de>
pull/162/head
Olaf Hering 2 years ago
committed by Jean-Baptiste Kempf
parent
commit
24e663be6f
  1. 6
      buildsystem/check_qml_module.py

6
buildsystem/check_qml_module.py

@ -50,7 +50,7 @@ class QmlModuleChecker:
"-qmlFiles", f.name,
"-importPath", self.qmlpath
],
capture_output=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
)
if ret.returncode != 0:
@ -86,13 +86,13 @@ class QmlModuleChecker:
if qtconf:
ret = subprocess.run(
[ qmake, "-qtconf", qtconf, "-query"],
capture_output=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
encoding="utf8"
)
else:
ret = subprocess.run(
[ qmake, "-query"],
capture_output=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
encoding="utf8"
)

Loading…
Cancel
Save