Use the new mlir_configure_python_dev_packages() macro instead of open coded.

This is required for consistency across upstream/downstream as there are certain deployment environments that cannot resolve the 'Development' component.

PiperOrigin-RevId: 403207802
Change-Id: Ibb47c8c616c0135c0568f7166de6528c239f9998
This commit is contained in:
Stella Laurenzo 2021-10-14 15:55:30 -07:00 committed by TensorFlower Gardener
parent cd6d20bb8f
commit 1690fa8e1c

View File

@ -108,10 +108,7 @@ add_definitions(${LLVM_DEFINITIONS})
if(MHLO_ENABLE_BINDINGS_PYTHON)
include(MLIRDetectPythonEnv)
mlir_detect_pybind11_install()
find_package(Python3 ${LLVM_MINIMUM_PYTHON_VERSION}
COMPONENTS Interpreter Development NumPy REQUIRED)
find_package(pybind11 2.6 CONFIG REQUIRED)
mlir_configure_python_dev_packages()
endif()
#-------------------------------------------------------------------------------