From bb2b5946100fb7e5128adc904e3bfd079ce33219 Mon Sep 17 00:00:00 2001 From: Bas Couwenberg Date: Sat, 14 May 2022 03:38:00 +0800 Subject: [PATCH] Fix syntax for Python 3 compatibility. Forwarded: not-needed Gbp-Pq: Name python3.patch --- src/swig/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swig/CMakeLists.txt b/src/swig/CMakeLists.txt index 29c2d05..0e40d5a 100644 --- a/src/swig/CMakeLists.txt +++ b/src/swig/CMakeLists.txt @@ -10,7 +10,7 @@ if(WITH_PYTHON) if(NOT DEFINED PYTHON_INSTALL_DIR) execute_process(COMMAND - ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)" + ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR OUTPUT_STRIP_TRAILING_WHITESPACE ) endif(NOT DEFINED PYTHON_INSTALL_DIR)