mirror of https://gitee.com/openkylin/libkml.git
Fix syntax for Python 3 compatibility.
Forwarded: not-needed Gbp-Pq: Name python3.patch
This commit is contained in:
parent
b963575e9e
commit
bb2b594610
|
@ -10,7 +10,7 @@ if(WITH_PYTHON)
|
||||||
|
|
||||||
if(NOT DEFINED PYTHON_INSTALL_DIR)
|
if(NOT DEFINED PYTHON_INSTALL_DIR)
|
||||||
execute_process(COMMAND
|
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_VARIABLE PYTHON_INSTALL_DIR
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
||||||
endif(NOT DEFINED PYTHON_INSTALL_DIR)
|
endif(NOT DEFINED PYTHON_INSTALL_DIR)
|
||||||
|
|
Loading…
Reference in New Issue