Add requirements files generation for installer (#8940)

* Add requirements files generation for installer

* add line

* fix build

* fix var

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
Sergey Lyubimtsev 2021-12-02 11:54:38 +03:00 committed by GitHub
parent 607814828d
commit 1d6d3ebea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -20,6 +20,28 @@ install(DIRECTORY deployment_manager
COMPONENT deployment_manager
USE_SOURCE_PERMISSIONS)
# outbound requirements.txt files for openvino-dev package
set(REQUIREMENTS_IN "${CMAKE_CURRENT_SOURCE_DIR}/requirements_dev.in")
set(EXTRAS_LIST _ caffe caffe2 kaldi mxnet onnx pytorch tensorflow tensorflow2)
ie_cpack_add_component(openvino_dev_req_files)
foreach(EXTRAS ${EXTRAS_LIST})
if(${EXTRAS} STREQUAL "_")
set(REQUIREMENTS_OUT "requirements.txt")
set(EXTRAS "")
else()
set(REQUIREMENTS_OUT "requirements_${EXTRAS}.txt")
set(EXTRAS "[${EXTRAS}]")
endif()
configure_file(${REQUIREMENTS_IN} ${REQUIREMENTS_OUT})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${REQUIREMENTS_OUT}
DESTINATION tools
COMPONENT openvino_dev_req_files
EXCLUDE_FROM_ALL)
endforeach()
# copy benchmark_app scripts
if(ENABLE_PYTHON)

View File

@ -0,0 +1 @@
openvino-dev${EXTRAS}==${IE_VERSION}