openvinotoolkit / open_model_zoo

Pre-trained Deep Learning models and demos (high quality and extremely fast)
https://docs.openvino.ai/latest/model_zoo.html
Apache License 2.0
4.1k stars 1.37k forks source link

Modernize Python Model API build documentation #3954

Closed eddie-LA closed 5 months ago

eddie-LA commented 6 months ago

Issue

Current version of the documentation states to use the following command to build the Model API package:

python <omz_dir>/demos/common/python/setup.py bdist_wheel

This results in the following error:

error: invalid command 'bdist_wheel'

Package version used: Python version 3.11.9 (in venv) build==1.2.1 setuptools==70.0.0 wheel==0.43.0

Proposal

bdist_wheel is deprecated. Change the build commands in the documentation.

What worked for me:

pip wheel <omz_dir>/demos/common/python

This command build the package and fetches any required dependencies with the local folder as an output.