Skip to content

Commit 2456816

Browse files
ilya-lavrenovakuporos
authored andcommitted
Fixed compatibility with new version of 'wheel' (#25899)
### Details: - *item1* - *...* ### Tickets: - *ticket-id*
1 parent 89e932f commit 2456816

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/bindings/python/wheel/CMakeLists.txt

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,21 @@
88

99
execute_process(COMMAND ${Python3_EXECUTABLE} -c "import wheel.vendored.packaging.tags as tags ; print(f'{tags.interpreter_name()}{tags.interpreter_version()}')"
1010
OUTPUT_VARIABLE PYTHON_TAG OUTPUT_STRIP_TRAILING_WHITESPACE)
11-
execute_process(COMMAND ${Python3_EXECUTABLE} -c "import wheel.bdist_wheel ; print(f'{wheel.bdist_wheel.get_abi_tag()}')"
11+
if(NOT PYTHON_TAG)
12+
message(FATAL_ERROR "Failed to detect Python Tag via wheel.vendored.packaging.tags. Please, check 'wheel' dependency version update")
13+
endif()
14+
15+
execute_process(COMMAND ${Python3_EXECUTABLE} -c "from setuptools.command.bdist_wheel import get_abi_tag; print(f'{get_abi_tag()}')"
1216
OUTPUT_VARIABLE ABI_TAG OUTPUT_STRIP_TRAILING_WHITESPACE)
17+
if(NOT ABI_TAG)
18+
message(FATAL_ERROR "Failed to detect ABI Tag via setuptools.command.bdist_wheel. Please, check 'setuptools' dependency version update")
19+
endif()
20+
1321
execute_process(COMMAND ${Python3_EXECUTABLE} -c "import wheel.vendored.packaging.tags as tags ; print(f'{next(tags.platform_tags())}')"
1422
OUTPUT_VARIABLE PLATFORM_TAG OUTPUT_STRIP_TRAILING_WHITESPACE)
23+
if(NOT PLATFORM_TAG)
24+
message(FATAL_ERROR "Failed to detect Platform Tag via wheel.vendored.packaging.tags. Please, check 'wheel' dependency version update")
25+
endif()
1526

1627
# defines wheel architecture part of `PLATFORM_TAG`
1728
macro(_ov_platform_arch)

0 commit comments

Comments
 (0)