/usr/src/WrapITK/ExternalProjects/PyBuffer/FindNUMARRAY.cmake is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Try to find numarray python package
# Once done this will define
#
# PYTHON_NUMARRAY_FOUND - system has numarray development package and it should be used
# PYTHON_NUMARRAY_INCLUDE_DIR - directory where the arrayobject.h header file can be found
#
#
IF(PYTHON_EXECUTABLE)
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/det_npp.py "try: import numpy; print numpy.get_numpy_include()\nexcept: pass\n")
EXEC_PROGRAM("${PYTHON_EXECUTABLE}"
ARGS "\"${CMAKE_CURRENT_BINARY_DIR}/det_npp.py\""
OUTPUT_VARIABLE NUMPY_PATH
)
ENDIF(PYTHON_EXECUTABLE)
FIND_PATH(PYTHON_NUMARRAY_INCLUDE_DIR arrayobject.h
"${NUMPY_PATH}/numpy/"
"${PYTHON_INCLUDE_PATH}/numarray/"
"${PYTHON_INCLUDE_PATH}/Numeric/"
/usr/include/python2.4/numarray/
/usr/include/python2.3/numarray/
/usr/include/python2.2/numarray/
/usr/include/python2.1/numarray/
DOC "Directory where the arrayobject.h header file can be found. This file is part of the numarray package"
)
IF(PYTHON_NUMARRAY_INCLUDE_DIR)
SET (PYTHON_NUMARRAY_FOUND 1 CACHE INTERNAL "Python numarray development package is available")
ENDIF(PYTHON_NUMARRAY_INCLUDE_DIR)
|