From d9debe3805662436a76d100dba17a976779f255e Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Thu, 11 Apr 2024 14:38:36 +0200 Subject: [PATCH 1/4] use --config-settings --- src/bindings/python/wheel/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt index f896ef5107b20a..6219cdf82f1691 100644 --- a/src/bindings/python/wheel/CMakeLists.txt +++ b/src/bindings/python/wheel/CMakeLists.txt @@ -100,9 +100,8 @@ if(pip_version VERSION_GREATER_EQUAL 22.0) ${Python3_EXECUTABLE} -m pip wheel --no-deps --wheel-dir ${openvino_wheels_output_dir} - --verbose - --build-option --build-number=${WHEEL_BUILD} - --build-option --plat-name=${PLATFORM_TAG} + # --build-option is deprecated, see https://github.com/pypa/pip/issues/11859 + --config-settings="--build-number=${WHEEL_BUILD} --build-option --plat-name=${PLATFORM_TAG}" "${CMAKE_CURRENT_SOURCE_DIR}") else() set(wheel_build_command From 8ab6eb07af900473f27142489191223fc8cffca0 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Thu, 11 Apr 2024 15:21:34 +0200 Subject: [PATCH 2/4] fixed config-settings --- src/bindings/python/wheel/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt index 6219cdf82f1691..456af15a896939 100644 --- a/src/bindings/python/wheel/CMakeLists.txt +++ b/src/bindings/python/wheel/CMakeLists.txt @@ -101,7 +101,7 @@ if(pip_version VERSION_GREATER_EQUAL 22.0) --no-deps --wheel-dir ${openvino_wheels_output_dir} # --build-option is deprecated, see https://github.com/pypa/pip/issues/11859 - --config-settings="--build-number=${WHEEL_BUILD} --build-option --plat-name=${PLATFORM_TAG}" + --config-settings="--build-option=--build-number=${WHEEL_BUILD} --plat-name=${PLATFORM_TAG}" "${CMAKE_CURRENT_SOURCE_DIR}") else() set(wheel_build_command From 7641dba36fb93b01f5dd2c2b3165ea7584f6a3d2 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Thu, 27 Jun 2024 17:56:45 +0200 Subject: [PATCH 3/4] set different options --- src/bindings/python/wheel/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt index 456af15a896939..880117e8ff267b 100644 --- a/src/bindings/python/wheel/CMakeLists.txt +++ b/src/bindings/python/wheel/CMakeLists.txt @@ -101,7 +101,8 @@ if(pip_version VERSION_GREATER_EQUAL 22.0) --no-deps --wheel-dir ${openvino_wheels_output_dir} # --build-option is deprecated, see https://github.com/pypa/pip/issues/11859 - --config-settings="--build-option=--build-number=${WHEEL_BUILD} --plat-name=${PLATFORM_TAG}" + --config-settings="--build-option=--build-number=${WHEEL_BUILD}" + --config-settings="--build-option=--plat-name=${PLATFORM_TAG}" "${CMAKE_CURRENT_SOURCE_DIR}") else() set(wheel_build_command From dd3a4b458d568e57bd87f26424f555a94ce0ce54 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Thu, 27 Jun 2024 18:40:29 +0200 Subject: [PATCH 4/4] remove -- --- src/bindings/python/wheel/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt index 880117e8ff267b..98b693f8cf5f29 100644 --- a/src/bindings/python/wheel/CMakeLists.txt +++ b/src/bindings/python/wheel/CMakeLists.txt @@ -101,8 +101,8 @@ if(pip_version VERSION_GREATER_EQUAL 22.0) --no-deps --wheel-dir ${openvino_wheels_output_dir} # --build-option is deprecated, see https://github.com/pypa/pip/issues/11859 - --config-settings="--build-option=--build-number=${WHEEL_BUILD}" - --config-settings="--build-option=--plat-name=${PLATFORM_TAG}" + --config-settings="--build-option=build-number=${WHEEL_BUILD}" + --config-settings="--build-option=plat-name=${PLATFORM_TAG}" "${CMAKE_CURRENT_SOURCE_DIR}") else() set(wheel_build_command