From 0655301d85a8d714d266a087d967feee79221389 Mon Sep 17 00:00:00 2001 From: Sean Morgan Date: Tue, 31 May 2022 14:02:11 -0700 Subject: [PATCH] Pin compatible protobuf version --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8c24bee6204..3e44fb34e16 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,14 @@ 'astor', 'absl-py', 'jinja2', - 'protobuf>=3.14', + # 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.1.4, < 3.20', 'pyyaml', ]