aboutsummaryrefslogtreecommitdiffstats
path: root/examples/utils
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2019-03-19 17:00:08 +0100
committerChristian Tismer <tismer@stackless.com>2019-04-08 13:55:43 +0000
commit728e94e37d44229d8f31dee4761eaf66f89bf01e (patch)
tree98b7c7a89bdb1e23b2f4863b6d80fdcc4061ae2c /examples/utils
parentafd4ee23124541c23fe58639f138ed7689cac562 (diff)
Automatically Test Small Example With PyInstaller
A simple hello.py script was modified for running in PyInstaller and stopping to execute after 2 seconds. The reason is to test that PyInstaller works correctly together with the embedded mode of the signature extension on all platforms. The script did first not work on Windows. This is now solved, after an import in pyside2_config.py is fixed. Currently, there are several configuration errors in COIN. Errors are therefore skipped in the PyInstaller build. The test tests only if the generated script works. Change-Id: I7a1b1e738d523b83cc3fe5beafa7e2579f9c7f48 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/utils')
-rw-r--r--examples/utils/pyside2_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/utils/pyside2_config.py b/examples/utils/pyside2_config.py
index c62b38cad..973410100 100644
--- a/examples/utils/pyside2_config.py
+++ b/examples/utils/pyside2_config.py
@@ -1,6 +1,6 @@
#############################################################################
##
-## Copyright (C) 2018 The Qt Company Ltd.
+## Copyright (C) 2019 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is part of the Qt for Python examples of the Qt Toolkit.
@@ -149,7 +149,7 @@ def shared_library_suffix():
def import_suffixes():
if (sys.version_info >= (3, 4)):
- import importlib
+ import importlib.machinery
return importlib.machinery.EXTENSION_SUFFIXES
else:
import imp