Skip to content

Commit

Permalink
limit the protobuf version - tensorflow requirement (openvinotoolkit#…
Browse files Browse the repository at this point in the history
  • Loading branch information
negvet committed Jun 21, 2022
1 parent d351ad6 commit e16bed2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def find_version(*file_paths):
sys.argv.remove("--torch")

if "--tf" in sys.argv:
# See also: https://github.com/tensorflow/tensorflow/issues/56077
# This is a temporary patch, that limites the protobuf version from above
INSTALL_REQUIRES.extend(["protobuf>=3.9.2,<3.20"])
INSTALL_REQUIRES.extend(EXTRAS_REQUIRE["tf"])
sys.argv.remove("--tf")

Expand Down

0 comments on commit e16bed2

Please sign in to comment.