From 72877d4b099f5e733c98ac008b92954418543404 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Wed, 26 Apr 2023 12:08:51 +0400 Subject: [PATCH] Use manylinux2014 instead of manylinux_2_17 as a platform tag (#15215) * Use manylinux2014 instead of manylinux_2_17 as a platform tag * Test --- .../python/src/openvino/runtime/opset4/ops.py | 3 +++ src/bindings/python/wheel/CMakeLists.txt | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/src/openvino/runtime/opset4/ops.py b/src/bindings/python/src/openvino/runtime/opset4/ops.py index a40a75ec02b..4bbd76379a7 100644 --- a/src/bindings/python/src/openvino/runtime/opset4/ops.py +++ b/src/bindings/python/src/openvino/runtime/opset4/ops.py @@ -165,6 +165,7 @@ def swish( return _get_node_factory_opset4().create("Swish", as_nodes(data, beta), {}) + @nameable_op def acosh(node: NodeInput, name: Optional[str] = None) -> Node: """Apply hyperbolic inverse cosine function on the input node element-wise. @@ -176,6 +177,7 @@ def acosh(node: NodeInput, name: Optional[str] = None) -> Node: return _get_node_factory_opset4().create("Acosh", as_nodes(node)) + @nameable_op def asinh(node: NodeInput, name: Optional[str] = None) -> Node: """Apply hyperbolic inverse sinus function on the input node element-wise. @@ -187,6 +189,7 @@ def asinh(node: NodeInput, name: Optional[str] = None) -> Node: return _get_node_factory_opset4().create("Asinh", as_nodes(node)) + @nameable_op def atanh(node: NodeInput, name: Optional[str] = None) -> Node: """Apply hyperbolic inverse tangent function on the input node element-wise. diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt index b7ec144d878..67697a2055b 100644 --- a/src/bindings/python/wheel/CMakeLists.txt +++ b/src/bindings/python/wheel/CMakeLists.txt @@ -109,7 +109,18 @@ elseif(LINUX) set(PLATFORM_TAG "linux_${_arch}") else() string(REPLACE "." "_" _ov_glibc_version "${OV_GLIBC_VERSION}") - set(PLATFORM_TAG "manylinux_${_ov_glibc_version}_${_arch}") + set(manylinux "manylinux_${_ov_glibc_version}") + + # convert to well-known formats according to PEP 600 + if(manylinux STREQUAL "manylinux_2_5") + set(manylinux "manylinux1") + elseif(manylinux STREQUAL "manylinux_2_12") + set(manylinux "manylinux2010") + elseif(manylinux STREQUAL "manylinux_2_17") + set(manylinux "manylinux2014") + endif() + + set(PLATFORM_TAG "${manylinux}_${_arch}") endif() endif()