From 79518facb4b857af9d9d5df2da463fdbf7eb0e3e Mon Sep 17 00:00:00 2001 From: Mihai Maruseac Date: Mon, 22 Jun 2020 11:37:07 -0700 Subject: [PATCH] Upper bound `numpy` dependency to `1.19.0`. Since `numpy==1.19.0` contains at least one breaking ABI change (numpy/numpy#15355), we need to either upper bound the dependency's range or fix our code to support both ABIs. Since the second requires more changes, we prefer the first one for now. PiperOrigin-RevId: 317699730 Change-Id: Ia62a779f9ec42d63d3fac1b69cd75e6084358d2f --- tensorflow/tools/pip_package/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py index 92061b396ce..42233f80c1c 100644 --- a/tensorflow/tools/pip_package/setup.py +++ b/tensorflow/tools/pip_package/setup.py @@ -58,7 +58,9 @@ REQUIRED_PACKAGES = [ 'google_pasta >= 0.1.8', 'h5py >= 2.10.0, < 2.11.0', 'keras_preprocessing >= 1.1.1, < 1.2', - 'numpy >= 1.16.0, < 2.0', + # TODO(mihaimaruseac): numpy 1.19.0 has ABI breakage + # https://github.com/numpy/numpy/pull/15355 + 'numpy >= 1.16.0, < 1.19.0', 'opt_einsum >= 2.3.2', 'protobuf >= 3.9.2', 'tensorboard >= 2.2.0, < 2.3.0',