Skip to content

Commit

Permalink
Remove runtime inits
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwaszki committed Oct 9, 2023
1 parent f97a42d commit 1132192
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 214 deletions.
28 changes: 0 additions & 28 deletions src/bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,34 +121,6 @@ endfunction()

ov_check_python_build_conditions()

# check __init__.py files alignment

function(ov_check_init_files_alignment init_files)
# check the files in pairs
list(LENGTH init_files init_files_count)
math(EXPR file_loop_range "${init_files_count}-2")
foreach(init_file_idx RANGE 0 ${file_loop_range})
math(EXPR init_file_idx_next "${init_file_idx}+1")
list(GET init_files ${init_file_idx} file1)
list(GET init_files ${init_file_idx_next} file2)

execute_process(COMMAND ${CMAKE_COMMAND} -E compare_files ${file1} ${file2}
RESULT_VARIABLE compare_result
)
if(compare_result EQUAL 1)
message(FATAL_ERROR "The runtime __init__.py files are misaligned: ${file1} and ${file2}")
endif()
endforeach()
endfunction()

set(INIT_FILES_RUNTIME
"${OpenVINOPython_SOURCE_DIR}/src/openvino/__init__.py"
"${OpenVINOPython_SOURCE_DIR}/src/compatibility/openvino/__init__.py"
"${OpenVINO_SOURCE_DIR}/tools/ovc/openvino/__init__.py"
"${OpenVINO_SOURCE_DIR}/tools/benchmark_tool/openvino/__init__.py")

ov_check_init_files_alignment("${INIT_FILES_RUNTIME}")

ie_option(ENABLE_PYTHON "Enables OpenVINO Python API build" ${ENABLE_PYTHON_DEFAULT})

#
Expand Down
62 changes: 0 additions & 62 deletions src/bindings/python/src/compatibility/openvino/__init__.py

This file was deleted.

62 changes: 0 additions & 62 deletions tools/benchmark_tool/openvino/__init__.py

This file was deleted.

62 changes: 0 additions & 62 deletions tools/ovc/openvino/__init__.py

This file was deleted.

0 comments on commit 1132192

Please sign in to comment.