forked from google/nucleus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWORKSPACE
More file actions
85 lines (75 loc) · 3.23 KB
/
Copy pathWORKSPACE
File metadata and controls
85 lines (75 loc) · 3.23 KB
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
workspace(name = "nucleus")
# Abseil libraries
git_repository(
name = "io_abseil_py",
remote = "https://github.com/abseil/abseil-py.git",
tag = "pypi-v0.2.2",
)
# Note: com_google_absl (the C++ abseil library) is provided by TensorFlow.
# CCTZ (Time-zone framework).
# TODO(b/80245980): transitive WORKSPACE dependency resolution doesn't
# work in bazel, so we need to include this to enable use of
# //absl/{time,synchronization}
http_archive(
name = "com_googlesource_code_cctz",
strip_prefix = "cctz-master",
urls = ["https://github.com/google/cctz/archive/master.zip"],
)
# Note: we are using a post-1.6 build release that fixes a double-free.
new_http_archive(
name = "htslib",
build_file = "third_party/htslib.BUILD",
sha256 = "7743e379fa27fdbaa81d4efc97adc5e0b2c5ade3cd09a93e311ea0c6b3a4ddf6",
strip_prefix = "htslib-57fa9be5255475b2cf9331db32848590a8ea8eb9",
urls = [
"https://github.com/samtools/htslib/archive/57fa9be5255475b2cf9331db32848590a8ea8eb9.zip",
],
)
# Import tensorflow. Note path.
local_repository(
name = "org_tensorflow",
path = "../tensorflow",
)
# Required boilerplate for tf_workspace(), apparently.
# This is copied from https://github.com/tensorflow/tensorflow/blob/v1.7.0/WORKSPACE.
http_archive(
name = "io_bazel_rules_closure",
sha256 = "6691c58a2cd30a86776dd9bb34898b041e37136f2dc7e24cadaeaf599c95c657",
strip_prefix = "rules_closure-08039ba8ca59f64248bb3b6ae016460fe9c9914f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz",
"https://github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz", # 2018-01-16
],
)
# We need a protobuf version at this hash or later because we need the API
# introduced in
# https://github.com/google/protobuf/pull/4698 with bug fixes at
# 4725, 4835, and 4836.
# We also use our own BUILD file to take advantage of the nucleus_py_* targets.
# It must be kept in sync with the version of protobuf used.
new_http_archive(
name = "protobuf_archive",
build_file = "third_party/protobuf.BUILD",
sha256 = "ab811441e16acd6e6d19abb9fd266b0acbd7c14be331de9da7f0bdb3683ae39f",
strip_prefix = "protobuf-79700b56b99fa5c8c22ddef78e6c9557ff711379",
urls = [
# TODO(thomaswc): Restore this URL when it is up on the mirror.
# "https://mirror.bazel.build/github.com/google/protobuf/archive/a0e82dbe569552ac848d088391b63aaa1108d1a3.tar.gz",
"https://github.com/google/protobuf/archive/79700b56b99fa5c8c22ddef78e6c9557ff711379.tar.gz",
],
)
# bazel_skylib is now a required dependency of protobuf_archive.
http_archive(
name = "bazel_skylib",
sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
)
# Import all of the tensorflow dependencies.
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
tf_workspace(tf_repo_name = "org_tensorflow")
new_local_repository(
name = "clif",
build_file = "third_party/clif.BUILD",
path = "/usr/local",
)