Increase the upper limit version of typing_extensions to fix install

(cherry picked from commit aa02c05c12988ac2b015a1ae5bab84455aee427d)
This commit is contained in:
zhangxianting 2024-04-02 20:19:37 +08:00 committed by openeuler-sync-bot
parent e4e83ae4e3
commit 3ff72e51b7
2 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,5 @@
--- a/tensorflow/tools/pip_package/setup.py 2023-09-13 06:21:22.906000000 +0000
+++ b/tensorflow/tools/pip_package/setup.py 2023-09-13 06:24:39.350000000 +0000
--- 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',
@ -17,8 +17,12 @@
# TODO(b/263178356): numpy 1.24 breaks TF's tests
'numpy >= 1.22, <= 1.24.3',
'opt_einsum >= 2.3.2',
@@ -111,9 +111,9 @@ REQUIRED_PACKAGES = [
'typing_extensions>=3.6.6,<4.6.0',
@@ -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',

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: tensorflow
Version: 2.12.1
Release: 0
Release: 1
Summary: An Open Source Machine Learning Framework for Everyone
License: Apache License 2.0
URL: https://www.tensorflow.org/
@ -67,6 +67,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --nofetch --host_copt=-
%{_bindir}/*
%changelog
* Tue Apr 02 2024 zhangxianting <zhangxianting@unionech.com> - 2.12.1-1
* Increase the upper limit version of typing_extensions to fix install, typing_extensions>=3.6.6,<4.6.0 to typing_extensions>=3.6.6,<=4.10.0
* Wed Sep 13 2023 Jincheng Miao <jincheng.miao@intel.com> - 2.12.1-0
- update version to 2.12.1