Skip to content

Commit

Permalink
[WHEEL] Do not fail build if tmp build directory was not removed (#26813
Browse files Browse the repository at this point in the history
)

### Details:
 - Do not fail build if tmp build directory was not removed
 -
### Tickets:
 - *151974*
  • Loading branch information
mryzhov authored Sep 27, 2024
1 parent 44866a7 commit d92f714
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bindings/python/wheel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ add_custom_target(ie_wheel ALL DEPENDS ${openvino_wheel_path} ${fdupes_report})
add_custom_command(
TARGET ie_wheel
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_SOURCE_DIR}/build_${pyversion}"
COMMAND ${CMAKE_COMMAND} -E true # w/a this ensures the command always succeeds
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_SOURCE_DIR}/build_${pyversion}" || ${CMAKE_COMMAND} -E true # w/a this ensures the command always succeeds
DEPENDS ${openvino_wheel_path}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Cleaning up Python wheel build for wheel ${openvino_wheel_name}"
Expand Down

0 comments on commit d92f714

Please sign in to comment.