From b18cbd336403fce94b637207bec4c8f5f4c7f489 Mon Sep 17 00:00:00 2001 From: Ke Zhang Date: Thu, 24 May 2018 18:29:08 -0700 Subject: [PATCH] remove mypy which blocks release. (#1031) --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6cdc60785f..7dd42fdc03a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,6 @@ project(onnx C CXX) option(ONNX_BUILD_BENCHMARKS "Build ONNX micro-benchmarks" OFF) option(BUILD_ONNX_PYTHON "Build Python binaries" OFF) -option(ONNX_GEN_PB_TYPE_STUBS "Generate protobuf python type stubs" ON) option(ONNX_WERROR "Build with Werror" OFF) option(ONNX_COVERAGE "Build with coverage instrumentation" OFF) option(ONNX_BUILD_TESTS "Build ONNX C++ APIs Tests" OFF) @@ -179,12 +178,6 @@ function(RELATIVE_PROTOBUF_GENERATE_CPP NAME SRCS HDRS ROOT_DIR DEPEND) set(PROTOC_ARGS ${GENERATED_PROTO} -I ${OUTPUT_PROTO_DIR} --cpp_out ${ONNX_DLLEXPORT_STR}${OUTPUT_PROTO_DIR}) if(BUILD_ONNX_PYTHON) list(APPEND PROTOC_ARGS --python_out ${ONNX_DLLEXPORT_STR}${OUTPUT_PROTO_DIR}) - if(ONNX_GEN_PB_TYPE_STUBS) - if(NOT WIN32) - # Haven't figured out how to generate mypy stubs on Windows yet - list(APPEND PROTOC_ARGS --plugin protoc-gen-mypy=${ROOT_DIR}/tools/protoc-gen-mypy.py --mypy_out ${ONNX_DLLEXPORT_STR}${OUTPUT_PROTO_DIR}) - endif() - endif() endif() if (NOT ONNX_PROTOC_EXECUTABLE) message(FATAL_ERROR "Protobuf compiler not found")