File tree 1 file changed +12
-1
lines changed
src/bindings/python/wheel
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
execute_process (COMMAND ${Python3_EXECUTABLE} -c "import wheel.vendored.packaging.tags as tags ; print(f'{tags.interpreter_name()}{tags.interpreter_version()}')"
10
10
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()}')"
12
16
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
+
13
21
execute_process (COMMAND ${Python3_EXECUTABLE} -c "import wheel.vendored.packaging.tags as tags ; print(f'{next(tags.platform_tags())}')"
14
22
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 ()
15
26
16
27
# defines wheel architecture part of `PLATFORM_TAG`
17
28
macro (_ov_platform_arch)
You can’t perform that action at this time.
0 commit comments