tensorflow/modify-deps-on-libclang-gcsfs-gast.patch
zhangxianting 3ff72e51b7 Increase the upper limit version of typing_extensions to fix install
(cherry picked from commit aa02c05c12988ac2b015a1ae5bab84455aee427d)
2024-05-16 15:49:40 +08:00

37 lines
1.4 KiB
Diff

--- a/tensorflow/tools/pip_package/setup.py
+++ b/tensorflow/tools/pip_package/setup.py
@@ -86,13 +86,13 @@ REQUIRED_PACKAGES = [
'astunparse >= 1.6.0',
'flatbuffers >= 2.0',
# TODO(b/213222745) gast versions above 0.4.0 break TF's tests
- 'gast >= 0.2.1, <= 0.4.0',
+ 'gast >= 0.2.1',
'google_pasta >= 0.1.1',
'h5py >= 2.9.0',
# TODO(b/239052279): replace with external dependency on JAX repo once JAX
# no longer relies on TF.
- 'jax >= 0.3.15',
- 'libclang >= 13.0.0',
+ #'jax >= 0.3.15',
+ #'libclang >= 13.0.0',
# TODO(b/263178356): numpy 1.24 breaks TF's tests
'numpy >= 1.22, <= 1.24.3',
'opt_einsum >= 2.3.2',
@@ -108,12 +108,12 @@ REQUIRED_PACKAGES = [
'setuptools',
'six >= 1.12.0',
'termcolor >= 1.1.0',
- 'typing_extensions>=3.6.6,<4.6.0',
+ 'typing_extensions>=3.6.6,<=4.10.0',
# TODO(b/266362323): wrapt==1.15.0rc0 incompatible with TF 2.12.0 RC0 (and
# nightly, but works with TF 2.11)
- 'wrapt >= 1.11.0, <1.15',
- 'tensorflow-io-gcs-filesystem >= 0.23.1;platform_machine!="arm64" or ' +
- 'platform_system!="Darwin"',
+ 'wrapt >= 1.11.0',
+ #'tensorflow-io-gcs-filesystem >= 0.23.1;platform_machine!="arm64" or ' +
+ #'platform_system!="Darwin"',
# grpcio does not build correctly on big-endian machines due to lack of
# BoringSSL support.
# See https://github.com/tensorflow/tensorflow/issues/17882.