Skip to content

Commit

Permalink
[PyOV] Fix several issues with wheel building dependencies (#27752)
Browse files Browse the repository at this point in the history
### 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: pypa/setuptools#4483
- `ImportError: cannot import name 'splat' from 'jaraco.functools'` has
been fixed in `setuptools==75.4.0`. More information:
pypa/setuptools@8d518af
- `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 <[email protected]>
  • Loading branch information
p-wysocki authored Dec 4, 2024
1 parent 5747c55 commit ecd5f04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bindings/python/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecd5f04

Please sign in to comment.