[mlir][Python] Check numpy in Python bindings configuration.
authorzhanghb97 <hongbin2019@iscas.ac.cn>
Sun, 29 Nov 2020 09:37:36 +0000 (17:37 +0800)
committerzhanghb97 <hongbin2019@iscas.ac.cn>
Wed, 2 Dec 2020 01:29:20 +0000 (09:29 +0800)
commit3024b1efde6097779d86277131e2de60086f637b
tree293cefa0e5b09269b3d719e83e87b1020d4c0045
parent126f58e83816588eae891fe46f02584bf65bef37
[mlir][Python] Check numpy in Python bindings configuration.

The test process of the ir_array_attributes.py depends on numpy. This patch checks numpy in Python bindings configuration.
- Add NumPy in find_package as a required component to check numpy.
- If numpy is found, print the version and include directory.

Differential Revision: https://reviews.llvm.org/D92276
mlir/CMakeLists.txt