aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libkml/20-fix-python3.patch
blob: e71cf798fd3e2f6c8461a4ad5efbdba4645922e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: Fix Python 2 syntax
----

--- 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)