Enable CPack for Python samples (#5406)
* Enable Python samples for CI & CPack * remove external dependency for CMakeLists file
This commit is contained in:
parent
6c83e0f8a5
commit
6d28be7411
@ -114,16 +114,6 @@ install(FILES samples/CMakeLists.txt
|
||||
DESTINATION ${IE_CPACK_IE_DIR}/samples/c
|
||||
COMPONENT c_samples)
|
||||
|
||||
# install Python samples
|
||||
|
||||
if(ENABLE_PYTHON)
|
||||
ie_cpack_add_component(python_samples DEPENDS core)
|
||||
|
||||
install(DIRECTORY ${ie_python_api_SOURCE_DIR}/sample/
|
||||
DESTINATION ${IE_CPACK_IE_DIR}/samples/python
|
||||
COMPONENT python_samples)
|
||||
endif()
|
||||
|
||||
# install speech demo files
|
||||
|
||||
if(SPEECH_LIBS_AND_DEMOS)
|
||||
|
@ -90,4 +90,12 @@ install(PROGRAMS src/openvino/__init__.py
|
||||
DESTINATION ${PYTHON_BRIDGE_CPACK_PATH}/${PYTHON_VERSION}/openvino
|
||||
COMPONENT ${PYTHON_VERSION})
|
||||
|
||||
ie_cpack(${PYTHON_VERSION})
|
||||
# install Python samples
|
||||
|
||||
ie_cpack_add_component(python_samples)
|
||||
|
||||
install(DIRECTORY sample/
|
||||
DESTINATION ${IE_CPACK_IE_DIR}/samples/python
|
||||
COMPONENT python_samples)
|
||||
|
||||
ie_cpack(${PYTHON_VERSION} python_samples)
|
||||
|
Loading…
Reference in New Issue
Block a user