diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-10-27 20:12:12 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2020-10-28 13:56:40 +0000 |
commit | 1fceed1fc3565080eef556c9b71498780aa94bf2 (patch) | |
tree | 848628ec5561e8c90d19cf3996f1047d39ab7928 /examples/samplebinding | |
parent | 1bc8c8ce262d80bbea0141f48055342adca9e3f9 (diff) |
examples: Remove Python 2.7 and <3.6 related code
* removing from __future__ import ...
* updating CMakeLists.txt files
* removing special if-else for Python 2 and 3
Change-Id: I8a34b06b6b384ebc5323f20f7c15c357a5be6d62
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/samplebinding')
-rw-r--r-- | examples/samplebinding/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/samplebinding/main.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/samplebinding/CMakeLists.txt b/examples/samplebinding/CMakeLists.txt index 8a2e55d66..aefc775fe 100644 --- a/examples/samplebinding/CMakeLists.txt +++ b/examples/samplebinding/CMakeLists.txt @@ -191,7 +191,7 @@ if(WIN32) # Circumvent some "#pragma comment(lib)"s in "include/pyconfig.h" which might force to link # against a wrong python shared library. - set(python_versions_list 3 32 33 34 35 36 37 38) + set(python_versions_list 3 36 37 38 39) set(python_additional_link_flags "") foreach(ver ${python_versions_list}) set(python_additional_link_flags @@ -224,7 +224,7 @@ endif() install(TARGETS ${bindings_library} ${sample_library} LIBRARY DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} RUNTIME DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} - ) + ) install(FILES ${windows_shiboken_shared_libraries} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}) # ============================================================================================= # !!! End of dubious section. diff --git a/examples/samplebinding/main.py b/examples/samplebinding/main.py index dc727c5d8..135eca12e 100644 --- a/examples/samplebinding/main.py +++ b/examples/samplebinding/main.py @@ -39,8 +39,6 @@ ## ############################################################################ -from __future__ import print_function - """An example showcasing how to use bindings for a custom non-Qt C++ library""" from Universe import Icecream, Truck |