Skip to content

Commit

Permalink
Add upper bound to protobuf in setup.py.
Browse files Browse the repository at this point in the history
See also: tensorflow#53234
See also: protocolbuffers/protobuf#9954
See also: tensorflow#56077

PiperOrigin-RevId: 450054200
  • Loading branch information
mihaimaruseac authored and pranve committed May 21, 2022
1 parent 6491886 commit f2c5a8c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tensorflow/tools/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@
'keras_preprocessing ~= 1.1.2',
'numpy ~= 1.19.2',
'opt_einsum ~= 3.3.0',
'protobuf >= 3.9.2',
# TODO(b/182876485): Protobuf 3.20 results in linker errors on Windows
# Protobuf 4.0 is binary incompatible with what C++ TF uses.
# We need ~1 quarter to update properly.
# See also: https://github.com/tensorflow/tensorflow/issues/53234
# See also: https://github.com/protocolbuffers/protobuf/issues/9954
# See also: https://github.com/tensorflow/tensorflow/issues/56077
# This is a temporary patch for now, to patch previous TF releases.
'protobuf >= 3.9.2, < 3.20',
'six ~= 1.15.0',
'termcolor ~= 1.1.0',
'typing_extensions ~= 3.7.4',
Expand Down

0 comments on commit f2c5a8c

Please sign in to comment.