From 1fceed1fc3565080eef556c9b71498780aa94bf2 Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Tue, 27 Oct 2020 20:12:12 +0100 Subject: 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 Reviewed-by: Friedemann Kleint --- examples/samplebinding/CMakeLists.txt | 4 ++-- examples/samplebinding/main.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/samplebinding') 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 -- cgit v1.2.3