Skip to content

Commit ddbb8eb

Browse files
committed
Try to a quick fix before throwing this module away
1 parent a7cf335 commit ddbb8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/Modules/FindNumpy.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ INCLUDE(FindPythonInterp)
1313

1414
IF(PYTHON_EXECUTABLE)
1515
EXEC_PROGRAM ("${PYTHON_EXECUTABLE}"
16-
ARGS "-c \"import sys; import numpy; sys.stdout.write(numpy.get_include())\""
16+
ARGS "-c \"import sys; import numpy; print(numpy.get_include())\""
1717
OUTPUT_VARIABLE PYTHON_NUMPY_INCLUDE_DIR
1818
RETURN_VALUE PYTHON_NUMPY_NOT_FOUND)
1919

@@ -35,4 +35,4 @@ else (PYTHON_NUMPY_FOUND)
3535
endif (PYTHON_NUMPY_FIND_REQUIRED)
3636
endif (PYTHON_NUMPY_FOUND)
3737

38-
MARK_AS_ADVANCED (PYTHON_NUMPY_INCLUDE_DIR)
38+
MARK_AS_ADVANCED (PYTHON_NUMPY_INCLUDE_DIR)

0 commit comments

Comments
 (0)