[master] openvino-dev return opencv-python back (#13002)

This commit is contained in:
Ekaterina Aidova authored and GitHub committed 2022-09-10 12:18:03 +04:00
1 parent 53542ded57
commit d4d9bb4e88
3 files changed
+3 -12

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
py-cpuinfo>=7.0.0
numpy>=1.16.6,<=1.23.1
progress>=1.5
progress>=1.5
opencv-python>=4.5
-10
View File
@@ -8,9 +8,7 @@ Use this script to create a wheel with OpenVINO™ Python* tools:
$ python setup.py sdist bdist_wheel
"""
import importlib
import pkg_resources
import warnings
from setuptools import setup, find_packages
with open('README.md', 'r', encoding='utf-8') as f:
@@ -23,14 +21,6 @@ with open('requirements.txt') as requirements_txt:
in pkg_resources.parse_requirements(requirements_txt)
]
try:
importlib.import_module('cv2')
except ImportError as opencv_import_error:
warnings.warn(
"Problem with cv2 import: \n{}\n opencv-python-headless will be added to requirements".format(opencv_import_error)
)
reqs.append('opencv-python-headless==4.5.*')
setup(
name='benchmark_tool',
version='0.0.0',