forked from google-deepmind/reverb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
96 lines (75 loc) · 3.11 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
workspace(name = "reverb")
# To change to a version of protoc compatible with tensorflow:
# 1. Convert the required header version to a version string, e.g.:
# 3011004 => "3.11.4"
# 2. Calculate the sha256 of the binary:
# PROTOC_VERSION="3.11.4"
# curl -L "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip" | sha256sum
# 3. Update the two variables below.
#
# Alternatively, run bazel with the environment var "REVERB_PROTOC_VERSION"
# set to override PROTOC_VERSION.
#
# *WARNING* If using the REVERB_PROTOC_VERSION environment variable, sha256
# checking is disabled. Use at your own risk.
PROTOC_VERSION = "3.9.0"
PROTOC_SHA256 = "15e395b648a1a6dda8fd66868824a396e9d3e89bc2c8648e3b9ab9801bea5d55"
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_google_googletest",
sha256 = "ff7a82736e158c077e76188232eac77913a15dac0b22508c390ab3f88e6d6d86",
strip_prefix = "googletest-b6cd405286ed8635ece71c72f118e659f4ade3fb",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/googletest/archive/b6cd405286ed8635ece71c72f118e659f4ade3fb.zip",
"https://github.com/google/googletest/archive/b6cd405286ed8635ece71c72f118e659f4ade3fb.zip",
],
)
http_archive(
name = "com_google_absl",
sha256 = "35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee", # SHARED_ABSL_SHA
strip_prefix = "abseil-cpp-997aaf3a28308eba1b9156aa35ab7bca9688e9f6",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz",
"https://github.com/abseil/abseil-cpp/archive/997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz",
],
)
## Begin GRPC related deps
http_archive(
name = "com_github_grpc_grpc",
patch_cmds = [
"""sed -i.bak 's/"python",/"python3",/g' third_party/py/python_configure.bzl""",
"""sed -i.bak 's/PYTHONHASHSEED=0/PYTHONHASHSEED=0 python3/g' bazel/cython_library.bzl""",
],
sha256 = "39bad059a712c6415b168cb3d922cb0e8c16701b475f047426c81b46577d844b",
strip_prefix = "grpc-reverb_fix",
urls = [
# Patched version of GRPC / boringSSL to make it compile with old TF GCC compiler
"https://github.com/qstanczyk/grpc/archive/reverb_fix.tar.gz",
],
)
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()
load("@upb//bazel:workspace_deps.bzl", "upb_deps")
upb_deps()
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
apple_rules_dependencies()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()
## End GRPC related deps
load(
"//reverb/cc/platform/default:repo.bzl",
"cc_tf_configure",
"reverb_protoc_deps",
"reverb_python_deps",
)
cc_tf_configure()
reverb_python_deps()
reverb_protoc_deps(version = PROTOC_VERSION, sha256 = PROTOC_SHA256)