nixpkgs/pkgs/development/python-modules/tensorflow/relax-dependencies.patch

53 lines
1.8 KiB
Diff
Raw Normal View History

diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py
2021-06-09 04:49:17 +01:00
index 354657a7bfc..eac85d4dba0 100644
--- a/tensorflow/tools/pip_package/setup.py
+++ b/tensorflow/tools/pip_package/setup.py
2021-06-09 04:49:17 +01:00
@@ -78,24 +78,24 @@ REQUIRED_PACKAGES = [
# NOTE: As numpy has releases that break semver guarantees and several other
# deps depend on numpy without an upper bound, we must install numpy before
# everything else.
- 'numpy ~= 1.19.2',
+ 'numpy >= 1.19.2',
# Install other dependencies
- 'absl-py ~= 0.10',
- 'astunparse ~= 1.6.3',
- 'flatbuffers ~= 1.12.0',
- 'google_pasta ~= 0.2',
2021-06-09 04:49:17 +01:00
- 'h5py ~= 3.1.0',
- 'keras_preprocessing ~= 1.1.2',
- 'opt_einsum ~= 3.3.0',
+ 'absl-py >= 0.10',
+ 'astunparse >= 1.6.3',
+ 'flatbuffers >= 1.12.0',
+ 'google_pasta >= 0.2',
2021-06-09 04:49:17 +01:00
+ 'h5py >= 3.1.0',
+ 'keras_preprocessing >= 1.1.2',
+ 'opt_einsum >= 3.3.0',
'protobuf >= 3.9.2',
- 'six ~= 1.15.0',
- 'termcolor ~= 1.1.0',
- 'typing_extensions ~= 3.7.4',
- 'wheel ~= 0.35',
- 'wrapt ~= 1.12.1',
+ 'six >= 1.15.0',
+ 'termcolor >= 1.1.0',
+ 'typing_extensions >= 3.7.4',
2021-06-09 04:49:17 +01:00
+ 'wheel >= 0.35',
+ 'wrapt >= 1.12.1',
2021-06-09 04:49:17 +01:00
# These packages need to be pinned exactly as newer versions are
# incompatible with the rest of the ecosystem
2021-06-09 04:49:17 +01:00
- 'gast == 0.4.0',
+ 'gast >= 0.4.0',
# TensorFlow ecosystem packages that TF exposes API for
# These need to be in sync with the existing TF version
# They are updated during the release process
2021-06-09 04:49:17 +01:00
@@ -127,7 +127,7 @@ if 'tf_nightly' in project_name:
# BoringSSL support.
# See https://github.com/tensorflow/tensorflow/issues/17882.
if sys.byteorder == 'little':
2021-06-09 04:49:17 +01:00
- REQUIRED_PACKAGES.append('grpcio ~= 1.34.0')
+ REQUIRED_PACKAGES.append('grpcio >= 1.34.0')
# Packages which are only needed for testing code.