diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-05 12:19:16 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-05 18:46:41 +0200 |
| commit | 36431b071095b8999347df87621bf23ffcc2ac3d (patch) | |
| tree | 014550c8f87f70320e1fd3a7572fb6ee7969021a /build_scripts/options.py | |
| parent | a7726c8ccc6e48b03cf33a864b9268e2d3de605d (diff) | |
Turn off numpy support in libpyside by default
Add a configure parameter for it and mark it as experimental.
It has been found to:
- break cx_freeeze
- Cause embedding applications to fail to load with "undefined symbol: PyExc_RecursionError"
Pick-to: 6.1 6.1.0
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Task-number: PYSIDE-1455
Change-Id: I72fa4a3324a37eb996c42b83dce55fe1990b6fc3
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'build_scripts/options.py')
| -rw-r--r-- | build_scripts/options.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build_scripts/options.py b/build_scripts/options.py index ec61fe0db..6971c188e 100644 --- a/build_scripts/options.py +++ b/build_scripts/options.py @@ -220,7 +220,9 @@ class DistUtilsCommandMixin(object): ('rpath=', None, 'RPATH'), ('qt-conf-prefix=', None, 'Qt configuration prefix'), ('qt-src-dir=', None, 'Qt source directory'), - ('no-qt-tools', None, 'Do not copy the Qt tools')] + ('no-qt-tools', None, 'Do not copy the Qt tools'), + ('pyside-numpy-support', None, 'libpyside: Add (experimental) numpy support') + ] def __init__(self): self.avoid_protected_hack = False @@ -258,6 +260,7 @@ class DistUtilsCommandMixin(object): self.qt_conf_prefix = None self.qt_src_dir = None self.no_qt_tools = False + self.pyside_numpy_support = False def mixin_finalize_options(self): # Bail out on 2nd call to mixin_finalize_options() since that is the @@ -309,6 +312,7 @@ class DistUtilsCommandMixin(object): OPTION['QT_CONF_PREFIX'] = self.qt_conf_prefix OPTION['QT_SRC'] = self.qt_src_dir OPTION['NO_QT_TOOLS'] = self.no_qt_tools + OPTION['PYSIDE_NUMPY_SUPPORT'] = self.pyside_numpy_support def _determine_defaults_and_check(self): if not self.cmake: |
