File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ def find_tensorflow() -> Tuple[Optional[str], List[str]]:
8383 # TypeError if submodule_search_locations are None
8484 # IndexError if submodule_search_locations is an empty list
8585 except (AttributeError , TypeError , IndexError ):
86+ tf_version = ""
8687 if os .environ .get ("CIBUILDWHEEL" , "0" ) == "1" :
8788 cuda_version = os .environ .get ("CUDA_VERSION" , "12.2" )
8889 if cuda_version == "" or cuda_version in SpecifierSet (">=12,<13" ):
@@ -99,9 +100,10 @@ def find_tensorflow() -> Tuple[Optional[str], List[str]]:
99100 "tensorflow-cpu>=2.5.0rc0,<2.15; platform_machine=='x86_64' and platform_system == 'Linux'" ,
100101 ]
101102 )
103+ tf_version = "2.14.1"
102104 else :
103105 raise RuntimeError ("Unsupported CUDA version" )
104- requires .extend (get_tf_requirement ()["cpu" ])
106+ requires .extend (get_tf_requirement (tf_version )["cpu" ])
105107 # setuptools will re-find tensorflow after installing setup_requires
106108 tf_install_dir = None
107109 return tf_install_dir , requires
You can’t perform that action at this time.
0 commit comments