From ecd5f045e2400a26630b07fddf5c16590c323f5a Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Wed, 4 Dec 2024 12:01:40 +0100 Subject: [PATCH] [PyOV] Fix several issues with wheel building dependencies (#27752) ### Details: - `packaging` is a dependency of `setuptools`. When installed with version lower than 22.0 it results in `TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'` when building wheel. `setuptools` claims it's an expected behavior, does not enforce that constraint and recommends to add the constraint ourselves. More information: https://github.com/pypa/setuptools/issues/4483 - `ImportError: cannot import name 'splat' from 'jaraco.functools'` has been fixed in `setuptools==75.4.0`. More information: https://github.com/pypa/setuptools/commit/8d518af4563ae3a448c6062c12d03dee3d78a0c5 - `Failed to detect ABI Tag via setuptools.command.bdist_wheel` - the functionality has been added in `setuptools==70.1.0`, that's where the new lower bound comes from. More context: https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/python/wheel/CMakeLists.txt#L15 ### Tickets: - CVS-157981 --------- Signed-off-by: p-wysocki --- src/bindings/python/constraints.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/constraints.txt b/src/bindings/python/constraints.txt index a0fbf982105ad6..cc1d4514b7bbfe 100644 --- a/src/bindings/python/constraints.txt +++ b/src/bindings/python/constraints.txt @@ -10,10 +10,11 @@ pytest-timeout==2.3.1 # Python bindings build<1.3 pygments>=2.8.1 -setuptools>=65.6.1,<75.3.0 +setuptools>=70.1,<75.6 sympy>=1.10 wheel>=0.38.1 patchelf<=0.17.2.1 +packaging>=22.0 # Frontends h5py>=3.1.0,<3.13.0