Skip to content

Commit c53ed9f

Browse files
committed
[BUILD] Move thirdparties from WORKSPACE to workspace.bzl.
Signed-off-by: Tongxuan Liu <tongxuan.ltx@alibaba-inc.com>
1 parent bbcc221 commit c53ed9f

File tree

2 files changed

+170
-151
lines changed

2 files changed

+170
-151
lines changed

WORKSPACE

Lines changed: 3 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -133,162 +133,14 @@ http_archive(
133133
)
134134

135135
http_archive(
136-
name = "com_github_nelhage_rules_boost", # Apache License 2.0
136+
name = "com_github_nelhage_rules_boost", # Apache License 2.0
137137
sha256 = "4031539fe0af832c6b6ed6974d820d350299a291ba7337d6c599d4854e47ed88",
138138
strip_prefix = "rules_boost-4ee400beca08f524e7ea3be3ca41cce34454272f",
139139
urls = [
140-
"https://github.com/nelhage/rules_boost/archive/4ee400beca08f524e7ea3be3ca41cce34454272f.tar.gz",
140+
"https://github.com/nelhage/rules_boost/archive/4ee400beca08f524e7ea3be3ca41cce34454272f.tar.gz",
141+
"https://github.com/nelhage/rules_boost/archive/4ee400beca08f524e7ea3be3ca41cce34454272f.tar.gz",
141142
],
142143
)
143144

144145
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
145-
146146
boost_deps()
147-
148-
http_archive(
149-
name = "colm", # MIT License
150-
build_file = "//third_party:colm.BUILD",
151-
sha256 = "4644956dd82bedf3795bb1a6fdf9ee8bdd33bd1e7769ef81ffdaa3da70c5a349",
152-
strip_prefix = "colm-0.13.0.6",
153-
urls = ["http://www.colm.net/files/colm/colm-0.13.0.6.tar.gz"],
154-
)
155-
156-
http_archive(
157-
name = "ragel", # MIT License
158-
build_file = "//third_party:ragel.BUILD",
159-
sha256 = "08bac6ff8ea9ee7bdd703373fe4d39274c87fecf7ae594774dfdc4f4dd4a5340",
160-
strip_prefix = "ragel-7.0.0.11",
161-
urls = ["http://www.colm.net/files/ragel/ragel-7.0.0.11.tar.gz"],
162-
)
163-
164-
http_archive(
165-
name = "sctp", # GPL-2.0 license
166-
build_file = "//third_party:sctp.BUILD",
167-
sha256 = "3e9ab5b3844a8b65fc8152633aafe85f406e6da463e53921583dfc4a443ff03a",
168-
strip_prefix = "lksctp-tools-1.0.18",
169-
urls = ["https://github.com/sctp/lksctp-tools/archive/v1.0.18.tar.gz"],
170-
)
171-
172-
http_archive(
173-
name = "uuid", # GPL-2.0 license
174-
build_file = "//third_party:uuid.BUILD",
175-
sha256 = "37ac05d82c6410d89bc05d43cee101fefc8fe6cf6090b3ce7a1409a6f35db606",
176-
strip_prefix = "util-linux-2.35.1",
177-
urls = ["https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.1.tar.gz"],
178-
)
179-
180-
http_archive(
181-
name = "xfs",
182-
build_file = "//third_party:xfs.BUILD", # GPL license
183-
sha256 = "cfbb0b136799c48cb79435facd0969c5a60a587a458e2d16f9752771027efbec",
184-
strip_prefix = "xfsprogs-5.5.0",
185-
urls = ["https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-5.5.0.tar.xz"],
186-
)
187-
188-
http_archive(
189-
name = "aliyun_oss_c_sdk", # Apache License 2.0
190-
build_file = "//serving/third_party:oss_c_sdk.BUILD",
191-
sha256 = "6450d3970578c794b23e9e1645440c6f42f63be3f82383097660db5cf2fba685",
192-
strip_prefix = "aliyun-oss-c-sdk-3.7.0",
193-
urls = [
194-
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/aliyun/aliyun-oss-c-sdk/archive/3.7.0.tar.gz",
195-
],
196-
)
197-
198-
http_archive(
199-
name = "concurrent_queue", # BSD License/Boost Software License/zlib License
200-
build_file = "//serving/third_party:concurrent_queue.BUILD",
201-
sha256 = "c3aeb97c97169f743a53ca33812ea2ab61dd06dfd28319ca3f0a0771372fc7fc",
202-
strip_prefix = "concurrentqueue-1.0.2",
203-
urls = [
204-
"https://github.com/cameron314/concurrentqueue/archive/v1.0.2.tar.gz",
205-
],
206-
)
207-
208-
http_archive(
209-
name = "libevent", # BSD License
210-
build_file = "//serving/third_party:libevent.BUILD",
211-
sha256 = "7180a979aaa7000e1264da484f712d403fcf7679b1e9212c4e3d09f5c93efc24",
212-
strip_prefix = "libevent-release-2.1.12-stable",
213-
patch_args = ["-p1"],
214-
patches = [
215-
"//serving/third_party:libevent1.patch",
216-
"//serving/third_party:libevent.patch",
217-
],
218-
urls = [
219-
"https://github.com/libevent/libevent/archive/release-2.1.12-stable.tar.gz",
220-
],
221-
)
222-
223-
http_archive(
224-
name = "hiredis", # BSD-3-Clause license
225-
build_file = "//serving/third_party:hiredis.BUILD",
226-
sha256 = "e0ab696e2f07deb4252dda45b703d09854e53b9703c7d52182ce5a22616c3819",
227-
strip_prefix = "hiredis-1.0.2",
228-
urls = [
229-
"https://github.com/redis/hiredis/archive/v1.0.2.tar.gz",
230-
],
231-
)
232-
233-
http_archive(
234-
name = "libexpat", # MIT license
235-
build_file = "//serving/third_party:libexpat.BUILD",
236-
sha256 = "574499cba22a599393e28d99ecfa1e7fc85be7d6651d543045244d5b561cb7ff",
237-
strip_prefix = "libexpat-R_2_2_6/expat",
238-
urls = [
239-
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/libexpat/libexpat/archive/R_2_2_6.tar.gz",
240-
],
241-
)
242-
243-
http_archive(
244-
name = "libapr1", # Apache License 2.0
245-
build_file = "//serving/third_party:libapr1.BUILD",
246-
sha256 = "1a0909a1146a214a6ab9de28902045461901baab4e0ee43797539ec05b6dbae0",
247-
strip_prefix = "apr-1.6.5",
248-
patch_args = ["-p1"],
249-
patches = [
250-
"//serving/third_party:libapr1.patch",
251-
],
252-
urls = [
253-
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/apache/apr/archive/1.6.5.tar.gz",
254-
],
255-
)
256-
257-
http_archive(
258-
name = "libaprutil1", # Apache License 2.0
259-
build_file = "//serving/third_party:libaprutil1.BUILD",
260-
sha256 = "4c9ae319cedc16890fc2776920e7d529672dda9c3a9a9abd53bd80c2071b39af",
261-
strip_prefix = "apr-util-1.6.1",
262-
patch_args = ["-p1"],
263-
patches = [
264-
"//serving/third_party:libaprutil1.patch",
265-
],
266-
urls = [
267-
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/apache/apr-util/archive/1.6.1.tar.gz",
268-
],
269-
)
270-
271-
http_archive(
272-
name = "mxml", # Apache License 2.0
273-
build_file = "//serving/third_party:mxml.BUILD",
274-
sha256 = "4d850d15cdd4fdb9e82817eb069050d7575059a9a2729c82b23440e4445da199",
275-
strip_prefix = "mxml-2.12",
276-
patch_args = ["-p1"],
277-
patches = [
278-
"//serving/third_party:mxml.patch",
279-
],
280-
urls = [
281-
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/michaelrsweet/mxml/archive/v2.12.tar.gz",
282-
],
283-
)
284-
285-
http_archive(
286-
name = "hugectr", # Apache License 2.0
287-
build_file = "//third_party:hugectr.BUILD",
288-
strip_prefix = "HugeCTR-4.3",
289-
patch_args = ["-p1"],
290-
patches = ["//third_party:HugeCTR.patch"],
291-
urls = [
292-
"https://github.com/NVIDIA-Merlin/HugeCTR/archive/refs/tags/v4.3.tar.gz",
293-
],
294-
)

tensorflow/workspace.bzl

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,173 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
12021202
],
12031203
)
12041204

1205+
tf_http_archive(
1206+
name = "colm", # MIT License
1207+
build_file = "//third_party:colm.BUILD",
1208+
sha256 = "4644956dd82bedf3795bb1a6fdf9ee8bdd33bd1e7769ef81ffdaa3da70c5a349",
1209+
strip_prefix = "colm-0.13.0.6",
1210+
urls = [
1211+
"http://www.colm.net/files/colm/colm-0.13.0.6.tar.gz",
1212+
"http://www.colm.net/files/colm/colm-0.13.0.6.tar.gz"
1213+
],
1214+
)
1215+
1216+
tf_http_archive(
1217+
name = "ragel", # MIT License
1218+
build_file = "//third_party:ragel.BUILD",
1219+
sha256 = "08bac6ff8ea9ee7bdd703373fe4d39274c87fecf7ae594774dfdc4f4dd4a5340",
1220+
strip_prefix = "ragel-7.0.0.11",
1221+
urls = [
1222+
"http://www.colm.net/files/ragel/ragel-7.0.0.11.tar.gz",
1223+
"http://www.colm.net/files/ragel/ragel-7.0.0.11.tar.gz"
1224+
],
1225+
)
1226+
1227+
tf_http_archive(
1228+
name = "sctp", # GPL-2.0 license
1229+
build_file = "//third_party:sctp.BUILD",
1230+
sha256 = "3e9ab5b3844a8b65fc8152633aafe85f406e6da463e53921583dfc4a443ff03a",
1231+
strip_prefix = "lksctp-tools-1.0.18",
1232+
urls = [
1233+
"https://github.com/sctp/lksctp-tools/archive/v1.0.18.tar.gz",
1234+
"https://github.com/sctp/lksctp-tools/archive/v1.0.18.tar.gz"
1235+
],
1236+
)
1237+
1238+
tf_http_archive(
1239+
name = "uuid", # GPL-2.0 license
1240+
build_file = "//third_party:uuid.BUILD",
1241+
sha256 = "37ac05d82c6410d89bc05d43cee101fefc8fe6cf6090b3ce7a1409a6f35db606",
1242+
strip_prefix = "util-linux-2.35.1",
1243+
urls = [
1244+
"https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.1.tar.gz",
1245+
"https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.1.tar.gz"
1246+
],
1247+
)
1248+
1249+
tf_http_archive(
1250+
name = "xfs", # GPL license
1251+
build_file = "//third_party:xfs.BUILD",
1252+
sha256 = "cfbb0b136799c48cb79435facd0969c5a60a587a458e2d16f9752771027efbec",
1253+
strip_prefix = "xfsprogs-5.5.0",
1254+
urls = [
1255+
"https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-5.5.0.tar.xz",
1256+
"https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-5.5.0.tar.xz"
1257+
],
1258+
)
1259+
1260+
tf_http_archive(
1261+
name = "aliyun_oss_c_sdk", # Apache License 2.0
1262+
build_file = "//serving/third_party:oss_c_sdk.BUILD",
1263+
sha256 = "6450d3970578c794b23e9e1645440c6f42f63be3f82383097660db5cf2fba685",
1264+
strip_prefix = "aliyun-oss-c-sdk-3.7.0",
1265+
urls = [
1266+
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/aliyun/aliyun-oss-c-sdk/archive/3.7.0.tar.gz",
1267+
"http://pythonrun.oss-cn-zhangjiakou.aliyuncs.com/tensorflow_io/github.com/aliyun/aliyun-oss-c-sdk/archive/3.7.0.tar.gz",
1268+
],
1269+
)
1270+
1271+
tf_http_archive(
1272+
name = "concurrent_queue", # BSD License/Boost Software License/zlib License
1273+
build_file = "//serving/third_party:concurrent_queue.BUILD",
1274+
sha256 = "c3aeb97c97169f743a53ca33812ea2ab61dd06dfd28319ca3f0a0771372fc7fc",
1275+
strip_prefix = "concurrentqueue-1.0.2",
1276+
urls = [
1277+
"https://github.com/cameron314/concurrentqueue/archive/v1.0.2.tar.gz",
1278+
"https://github.com/cameron314/concurrentqueue/archive/v1.0.2.tar.gz",
1279+
],
1280+
)
1281+
1282+
http_archive(
1283+
name = "libevent", # BSD License
1284+
build_file = "//serving/third_party:libevent.BUILD",
1285+
sha256 = "7180a979aaa7000e1264da484f712d403fcf7679b1e9212c4e3d09f5c93efc24",
1286+
strip_prefix = "libevent-release-2.1.12-stable",
1287+
patch_args = ["-p1"],
1288+
patches = [
1289+
"//serving/third_party:libevent1.patch",
1290+
"//serving/third_party:libevent.patch",
1291+
],
1292+
urls = [
1293+
"https://github.com/libevent/libevent/archive/release-2.1.12-stable.tar.gz",
1294+
],
1295+
)
1296+
1297+
tf_http_archive(
1298+
name = "hiredis", # BSD-3-Clause license
1299+
build_file = "//serving/third_party:hiredis.BUILD",
1300+
sha256 = "e0ab696e2f07deb4252dda45b703d09854e53b9703c7d52182ce5a22616c3819",
1301+
strip_prefix = "hiredis-1.0.2",
1302+
urls = [
1303+
"https://github.com/redis/hiredis/archive/v1.0.2.tar.gz",
1304+
"https://github.com/redis/hiredis/archive/v1.0.2.tar.gz",
1305+
],
1306+
)
1307+
1308+
tf_http_archive(
1309+
name = "libexpat", # MIT license
1310+
build_file = "//serving/third_party:libexpat.BUILD",
1311+
sha256 = "574499cba22a599393e28d99ecfa1e7fc85be7d6651d543045244d5b561cb7ff",
1312+
strip_prefix = "libexpat-R_2_2_6/expat",
1313+
urls = [
1314+
"https://github.com/libexpat/libexpat/archive/R_2_2_6.tar.gz",
1315+
"https://github.com/libexpat/libexpat/archive/R_2_2_6.tar.gz"
1316+
],
1317+
)
1318+
1319+
http_archive(
1320+
name = "libapr1", # Apache License 2.0
1321+
build_file = "//serving/third_party:libapr1.BUILD",
1322+
sha256 = "096968a363b2374f7450a3c65f3cc0b50561204a8da7bc03a2c39e080febd6e1",
1323+
strip_prefix = "apr-1.6.5",
1324+
patch_args = ["-p1"],
1325+
patches = [
1326+
"//serving/third_party:libapr1.patch",
1327+
],
1328+
urls = [
1329+
"https://github.com/apache/apr/archive/1.6.5.tar.gz",
1330+
],
1331+
)
1332+
1333+
http_archive(
1334+
name = "libaprutil1", # Apache License 2.0
1335+
build_file = "//serving/third_party:libaprutil1.BUILD",
1336+
sha256 = "1e4299da5a3eca49cc3acab60600d0d7c0cda2de46d662ca14fadf5ab68a8c4f",
1337+
strip_prefix = "apr-util-1.6.1",
1338+
patch_args = ["-p1"],
1339+
patches = [
1340+
"//serving/third_party:libaprutil1.patch",
1341+
],
1342+
urls = [
1343+
"https://github.com/apache/apr-util/archive/1.6.1.tar.gz",
1344+
],
1345+
)
1346+
1347+
http_archive(
1348+
name = "mxml", # Apache License 2.0
1349+
build_file = "//serving/third_party:mxml.BUILD",
1350+
sha256 = "4d850d15cdd4fdb9e82817eb069050d7575059a9a2729c82b23440e4445da199",
1351+
strip_prefix = "mxml-2.12",
1352+
patch_args = ["-p1"],
1353+
patches = [
1354+
"//serving/third_party:mxml.patch",
1355+
],
1356+
urls = [
1357+
"https://github.com/michaelrsweet/mxml/archive/v2.12.tar.gz",
1358+
],
1359+
)
1360+
1361+
http_archive(
1362+
name = "hugectr", # Apache License 2.0
1363+
build_file = "//third_party:hugectr.BUILD",
1364+
strip_prefix = "HugeCTR-4.3",
1365+
patch_args = ["-p1"],
1366+
patches = ["//third_party:HugeCTR.patch"],
1367+
urls = [
1368+
"https://github.com/NVIDIA-Merlin/HugeCTR/archive/refs/tags/v4.3.tar.gz",
1369+
],
1370+
)
1371+
12051372
def tf_bind():
12061373
"""Bind targets for some external repositories"""
12071374
##############################################################################

0 commit comments

Comments
 (0)