File: python3.patch

package info (click to toggle)
libkml 1.3.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,660 kB
  • sloc: cpp: 48,088; python: 2,008; xml: 1,806; ansic: 1,766; php: 223; java: 195; ruby: 109; perl: 108; sh: 42; makefile: 17
file content (15 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix syntax for Python 3 compatibility.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: not-needed

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