@@ -4,34 +4,32 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
4
5
5
http_archive (
6
6
name = "icu" ,
7
- strip_prefix = "icu-release-64-2" ,
8
- sha256 = "dfc62618aa4bd3ca14a3df548cd65fe393155edd213e49c39f3a30ccd618fc27" ,
7
+ build_file = "//third_party/icu:BUILD.bzl" ,
8
+ integrity = "sha256-5CS6UoLZWtOLUmOaCPuCFk8LDL1/F7U64WvxT4VBhV8=" ,
9
+ strip_prefix = "icu-release-77-1" ,
9
10
urls = [
10
- "https://storage.googleapis.com/mirror.tensorflow.org/github.com/unicode-org/icu/archive/release-64-2 .zip" ,
11
- "https://github.com/unicode-org/icu/archive/release-64-2 .zip" ,
11
+ "https://storage.googleapis.com/mirror.tensorflow.org/github.com/unicode-org/icu/archive/release-77-1 .zip" ,
12
+ "https://github.com/unicode-org/icu/archive/release-77-1 .zip" ,
12
13
],
13
- build_file = "//third_party/icu:BUILD.bzl" ,
14
- patches = ["//third_party/icu:udata.patch" ],
15
- patch_args = ["-p1" ],
16
14
)
17
15
18
16
http_archive (
19
17
name = "com_google_sentencepiece" ,
20
- strip_prefix = "sentencepiece-0.1.96" ,
18
+ build_file = "//third_party/sentencepiece:BUILD" ,
19
+ patch_args = ["-p1" ],
20
+ patches = ["//third_party/sentencepiece:sp.patch" ],
21
21
sha256 = "8409b0126ebd62b256c685d5757150cf7fcb2b92a2f2b98efb3f38fc36719754" ,
22
+ strip_prefix = "sentencepiece-0.1.96" ,
22
23
urls = [
23
- "https://github.com/google/sentencepiece/archive/refs/tags/v0.1.96.zip"
24
+ "https://github.com/google/sentencepiece/archive/refs/tags/v0.1.96.zip" ,
24
25
],
25
- build_file = "//third_party/sentencepiece:BUILD" ,
26
- patches = ["//third_party/sentencepiece:sp.patch" ],
27
- patch_args = ["-p1" ],
28
26
)
29
27
30
28
http_archive (
31
29
name = "cppitertools" ,
32
- urls = ["https://github.com/ryanhaining/cppitertools/archive/refs/tags/v2.0.zip" ],
33
30
sha256 = "e56741b108d6baced98c4ccd83fd0d5a545937f2845978799c28d0312c0dee3d" ,
34
31
strip_prefix = "cppitertools-2.0" ,
32
+ urls = ["https://github.com/ryanhaining/cppitertools/archive/refs/tags/v2.0.zip" ],
35
33
)
36
34
37
35
http_archive (
@@ -56,10 +54,10 @@ http_archive(
56
54
57
55
http_archive (
58
56
name = "org_tensorflow" ,
57
+ # sha256 = "c8c7e0df61412231f881e624586eafcb77a230ba461c9241e2f6c1e957fbebd6",
59
58
strip_prefix = "tensorflow-40998f44c0c500ce0f6e3b1658dfbc54f838a82a" ,
60
- sha256 = "5a5bc4599964c71277dcac0d687435291e5810d2ac2f6283cc96736febf73aaf" ,
61
59
urls = [
62
- "https://github.com/tensorflow/tensorflow/archive/40998f44c0c500ce0f6e3b1658dfbc54f838a82a.zip"
60
+ "https://github.com/tensorflow/tensorflow/archive/40998f44c0c500ce0f6e3b1658dfbc54f838a82a.zip" ,
63
61
],
64
62
)
65
63
@@ -74,13 +72,13 @@ http_archive(
74
72
75
73
http_archive (
76
74
name = "pybind11" ,
75
+ build_file = "//third_party/pybind11:BUILD.bzl" ,
76
+ sha256 = "efc901aa0aab439a3fea6efeaf930b5a349fb06394bf845c64ce15a9cf8f0240" ,
77
+ strip_prefix = "pybind11-2.13.4" ,
77
78
urls = [
78
79
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/pybind/pybind11/archive/v2.13.4.tar.gz" ,
79
80
"https://github.com/pybind/pybind11/archive/v2.13.4.tar.gz" ,
80
81
],
81
- sha256 = "efc901aa0aab439a3fea6efeaf930b5a349fb06394bf845c64ce15a9cf8f0240" ,
82
- strip_prefix = "pybind11-2.13.4" ,
83
- build_file = "//third_party/pybind11:BUILD.bzl" ,
84
82
)
85
83
86
84
http_archive (
@@ -99,27 +97,31 @@ load("//tensorflow_text:tftext.bzl", "py_deps_profile")
99
97
100
98
py_deps_profile (
101
99
name = "release_or_nightly" ,
102
- requirements_in = "//oss_scripts/pip_package:requirements.in" ,
103
- pip_repo_name = "pypi" ,
104
100
deps_map = {
105
- "tensorflow" : ["tf-nightly" , "tf_header_lib" , "libtensorflow_framework" ],
106
- "tf-keras" : ["tf-keras-nightly" ]
101
+ "tensorflow" : [
102
+ "tf-nightly" ,
103
+ "tf_header_lib" ,
104
+ "libtensorflow_framework" ,
105
+ ],
106
+ "tf-keras" : ["tf-keras-nightly" ],
107
107
},
108
+ pip_repo_name = "pypi" ,
109
+ requirements_in = "//oss_scripts/pip_package:requirements.in" ,
108
110
switch = {
109
- "IS_NIGHTLY" : "nightly"
110
- }
111
+ "IS_NIGHTLY" : "nightly" ,
112
+ },
111
113
)
112
114
113
115
load ("@org_tensorflow//third_party/py:python_init_repositories.bzl" , "python_init_repositories" )
114
116
115
117
python_init_repositories (
118
+ default_python_version = "system" ,
116
119
requirements = {
117
120
"3.9" : "//oss_scripts/pip_package:requirements_lock_3_9.txt" ,
118
121
"3.10" : "//oss_scripts/pip_package:requirements_lock_3_10.txt" ,
119
122
"3.11" : "//oss_scripts/pip_package:requirements_lock_3_11.txt" ,
120
123
"3.12" : "//oss_scripts/pip_package:requirements_lock_3_12.txt" ,
121
124
},
122
- default_python_version = "system" ,
123
125
)
124
126
125
127
load ("@org_tensorflow//third_party/py:python_init_toolchains.bzl" , "python_init_toolchains" )
@@ -136,18 +138,28 @@ install_deps()
136
138
137
139
# Initialize TensorFlow dependencies.
138
140
load ("@org_tensorflow//tensorflow:workspace3.bzl" , "tf_workspace3" )
141
+
139
142
tf_workspace3 ()
143
+
140
144
load ("@org_tensorflow//tensorflow:workspace2.bzl" , "tf_workspace2" )
145
+
141
146
tf_workspace2 ()
147
+
142
148
load ("@org_tensorflow//tensorflow:workspace1.bzl" , "tf_workspace1" )
149
+
143
150
tf_workspace1 ()
151
+
144
152
load ("@org_tensorflow//tensorflow:workspace0.bzl" , "tf_workspace0" )
153
+
145
154
tf_workspace0 ()
146
155
147
156
# Set up Android.
148
157
load ("@org_tensorflow//third_party/android:android_configure.bzl" , "android_configure" )
149
- android_configure (name = "local_config_android" )
158
+
159
+ android_configure (name = "local_config_android" )
160
+
150
161
load ("@local_config_android//:android.bzl" , "android_workspace" )
162
+
151
163
android_workspace ()
152
164
153
165
load (
0 commit comments