diff options
author | Christian Tismer <tismer@stackless.com> | 2019-02-25 12:35:24 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2019-02-26 10:35:51 +0000 |
commit | c6c1a3e099a8139137d6ef133d1d399ba1ee38bd (patch) | |
tree | aad5762394b1c6b2c03d1e4ddfa7ad7fd32b2abe /sources/shiboken2/shibokenmodule/CMakeLists.txt | |
parent | 5dcebb60c75b03cec2db63ecc618740a78d7f084 (diff) |
Prevent Python 3.5 From Crashing The Build
Python 3.5 has a bug that crashes the build.
See the description in the issue tracker.
The cure is to use a more recent contextlib.py and to avoid
a PySide cleanup function that creates the crash.
The problem is not solved for Python 3.5, and it is not clear
if the testbinding module has a hidden bug, too.
But this fix seems to be good enough for the moment.
We should decide if we are going to fix Python 3.5 or abandon
it altogether.
Change-Id: Iacf2237de1f34d2b3cd1d68f1fb5833bdca3fdc2
Fixes: PYSIDE-953
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2/shibokenmodule/CMakeLists.txt')
-rw-r--r-- | sources/shiboken2/shibokenmodule/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken2/shibokenmodule/CMakeLists.txt b/sources/shiboken2/shibokenmodule/CMakeLists.txt index b37d0c941..952d31994 100644 --- a/sources/shiboken2/shibokenmodule/CMakeLists.txt +++ b/sources/shiboken2/shibokenmodule/CMakeLists.txt @@ -70,6 +70,10 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/signature/lib/__init__.py" configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/signature/lib/enum_sig.py" "${CMAKE_CURRENT_BINARY_DIR}/support/signature/lib/enum_sig.py" COPYONLY) if (PYTHON_VERSION_MAJOR EQUAL 3) + if (PYTHON_VERSION_MINOR EQUAL 5) + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/signature/contextlib36.py" + "${CMAKE_CURRENT_BINARY_DIR}/support/signature/contextlib36.py" COPYONLY) + endif() else() configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/signature/backport_inspect.py" "${CMAKE_CURRENT_BINARY_DIR}/support/signature/backport_inspect.py" COPYONLY) |