Skip to content

Commit

Permalink
Added requirements for setuptools (openvinotoolkit#812)
Browse files Browse the repository at this point in the history
setuptools<43.0.0 could not find suitable distribution for 'tensorflow==2.4.0'
  • Loading branch information
l-bat committed Jul 2, 2021
1 parent 41342bf commit e669857
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
with open("{}/README.md".format(here), "r") as fh:
long_description = fh.read()

if "--tf" in sys.argv:
import setuptools
from pkg_resources import parse_version
setuptools_version = parse_version(setuptools.__version__).base_version
if setuptools_version < '43.0.0':
raise RuntimeError(
"To properly install NNCF, please install setuptools>=43.0.0, "
"while current setuptools version is {curr}".format(
curr=setuptools.__version__
))


def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
Expand Down

0 comments on commit e669857

Please sign in to comment.