Fix syntax for Python 3 compatibility.

Forwarded: not-needed

Gbp-Pq: Name python3.patch
This commit is contained in:
Bas Couwenberg 2022-05-14 03:38:00 +08:00 committed by openKylinBot
parent b963575e9e
commit bb2b594610
1 changed files with 1 additions and 1 deletions

View File

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