From 770c9cba81e65dcc6fe5b567ad408d1514eebdf0 Mon Sep 17 00:00:00 2001 From: yeyunpeng Date: Tue, 27 Oct 2020 09:09:35 +0800 Subject: [PATCH] Remove python and pybind11 dependency --- mindspore/lite/CMakeLists.txt | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/mindspore/lite/CMakeLists.txt b/mindspore/lite/CMakeLists.txt index a272a5053d..5b3268dd2b 100644 --- a/mindspore/lite/CMakeLists.txt +++ b/mindspore/lite/CMakeLists.txt @@ -144,30 +144,8 @@ if (ENABLE_CONVERTER) if (PLATFORM_ARM) MESSAGE(FATAL_ERROR "Cannot build converter in arm platform") endif() - find_package(Python3 3.7 COMPONENTS Interpreter Development) - if (Python3_FOUND) - set(PYTHON_INCLUDE_DIRS "${Python3_INCLUDE_DIRS}") - set(PYTHON_LIBRARIES "${Python3_LIBRARIES}") - if (WIN32) - if (Python3_DIR) - message("Python3_DIR set already: " ${Python3_DIR}) - else () - string(LENGTH ${PYTHON_LIBRARIES} PYTHON_LIBRARIES_LEN) - string(LENGTH "libpythonxx.a" Python3_NAME_LEN) - math(EXPR Python3_DIR_LEN ${PYTHON_LIBRARIES_LEN}-${Python3_NAME_LEN}) - string(SUBSTRING ${Python3_LIBRARIES} 0 ${Python3_DIR_LEN} Python3_DIR) - message("Python3_DIR: " ${Python3_DIR}) - endif () - link_directories(${Python3_DIR}) - endif () - else () - find_python_package(py_inc py_lib) - set(PYTHON_INCLUDE_DIRS "${py_inc}") - set(PYTHON_LIBRARIES "${py_lib}") - endif () include_directories(${PYTHON_INCLUDE_DIRS}) include(${TOP_DIR}/cmake/external_libs/json.cmake) - include(${TOP_DIR}/cmake/external_libs/pybind11.cmake) include(${TOP_DIR}/cmake/external_libs/eigen.cmake) include(${TOP_DIR}/cmake/external_libs/protobuf.cmake) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tools/converter)