diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 8522531c9e3b..cf04c20710c2 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -44,16 +44,6 @@ macro(PY_COMPILE TARGET_NAME RESOURCE_PATHS) endif() endmacro(PY_COMPILE) -# Macro to auto migrate resources -macro(PY_2TO3 TARGET_NAME RESOURCE_PATHS) - add_custom_command(TARGET ${TARGET_NAME} - POST_BUILD - COMMAND "${Python_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/scripts/2to3" --no-diffs -w ${RESOURCE_PATHS} - WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" - COMMENT "Porting ${RESOURCE_PATHS} to Python 3 and Qt5" - ) -endmacro(PY_2TO3) - add_subdirectory(plugins) if (WITH_GUI) add_subdirectory(qsci_apis) diff --git a/scripts/2to3 b/scripts/2to3 deleted file mode 100755 index db82ef2b246b..000000000000 --- a/scripts/2to3 +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env python3 -import os -import sys - -from lib2to3.main import main - -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__)))) -sys.exit(main("qgis_fixes"))