Skip to content

Commit 244a326

Browse files
committed
py3k: Fix include prints in Python wrapper CMakeLists.txt
Signed-off-by: Elliott Sales de Andrade <[email protected]>
1 parent d571258 commit 244a326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrappers/python/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ find_program(CYTHON_EXECUTABLE cython)
99

1010
# Figure out installation path
1111
execute_process(COMMAND
12-
${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}')"
12+
${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}'))"
1313
OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
1414

1515
# Figure out numpy include path
1616
execute_process(COMMAND
17-
${PYTHON_EXECUTABLE} -c "import numpy; print numpy.get_include()"
17+
${PYTHON_EXECUTABLE} -c "import numpy; print(numpy.get_include())"
1818
OUTPUT_VARIABLE NUMPY_INCLUDE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
1919

2020
# How to Cython the .pyx file

0 commit comments

Comments
 (0)