|
a |
|
b/WORKSPACE |
|
|
1 |
# The workspace name appears at the top of the runfiles tree, |
|
|
2 |
# and in paths to tests, so to keep python happy it is best |
|
|
3 |
# if it is unique. |
|
|
4 |
workspace(name = "com_google_deepvariant") |
|
|
5 |
|
|
|
6 |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
|
|
7 |
|
|
|
8 |
# Note: absl_py and com_google_absl (the Python and C++ abseil libraries) are |
|
|
9 |
# provided by TensorFlow. |
|
|
10 |
|
|
|
11 |
# CCTZ (Time-zone framework). |
|
|
12 |
# TODO: transitive WORKSPACE dependency resolution doesn't |
|
|
13 |
# work in bazel, so we need to include this to enable nucleus's use of |
|
|
14 |
# //absl/{time,synchronization} |
|
|
15 |
http_archive( |
|
|
16 |
name = "com_googlesource_code_cctz", |
|
|
17 |
strip_prefix = "cctz-master", |
|
|
18 |
urls = ["https://github.com/google/cctz/archive/master.zip"], |
|
|
19 |
) |
|
|
20 |
|
|
|
21 |
# This is the 1.18 release of htslib. |
|
|
22 |
http_archive( |
|
|
23 |
name = "htslib", |
|
|
24 |
build_file = "//:third_party/htslib.BUILD", |
|
|
25 |
sha256 = "f1ab53a593a2320a1bfadf4ef915dae784006c5b5c922c8a8174d7530a9af18f", |
|
|
26 |
strip_prefix = "htslib-1.18", |
|
|
27 |
urls = [ |
|
|
28 |
"https://github.com/samtools/htslib/releases/download/1.18/htslib-1.18.tar.bz2", |
|
|
29 |
], |
|
|
30 |
) |
|
|
31 |
|
|
|
32 |
http_archive( |
|
|
33 |
name = "libssw", |
|
|
34 |
build_file = "//:third_party/libssw.BUILD", |
|
|
35 |
sha256 = "b294c0cb6f0f3d578db11b4112a88b20583b9d4190b0a9cf04d83bb6a8704d9a", |
|
|
36 |
# Note: HHBlits requires a patch (internal) in ssw_align to work. |
|
|
37 |
strip_prefix = "Complete-Striped-Smith-Waterman-Library-1.2.5", |
|
|
38 |
urls = [ |
|
|
39 |
"https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library/archive/v1.2.5.tar.gz", |
|
|
40 |
], |
|
|
41 |
) |
|
|
42 |
|
|
|
43 |
http_archive( |
|
|
44 |
name = "gbwt", |
|
|
45 |
build_file = "//:third_party/gbwt.BUILD", |
|
|
46 |
sha256 = "21d3679349ef9809a886da50f0a2036eba0c172b97826a7882322f81649397e2", |
|
|
47 |
strip_prefix = "gbwt-0b3aacbea6f7d285a3c5fbd0a22b4aa2ac8957d6", |
|
|
48 |
urls = [ |
|
|
49 |
"https://github.com/mobinasri/gbwt/archive/0b3aacbea6f7d285a3c5fbd0a22b4aa2ac8957d6.zip", |
|
|
50 |
], |
|
|
51 |
) |
|
|
52 |
|
|
|
53 |
http_archive( |
|
|
54 |
name = "libhandlegraph", |
|
|
55 |
build_file = "//:third_party/libhandlegraph.BUILD", |
|
|
56 |
sha256 = "078dee9ab07996193117b54d75f6e4cfd881851da5e3c3e3d8c669c7eefeaaa2", |
|
|
57 |
strip_prefix = "libhandlegraph-b2fc22c552440076b340306fc660b4fa309fb005", |
|
|
58 |
urls = [ |
|
|
59 |
"https://github.com/mobinasri/libhandlegraph/archive/b2fc22c552440076b340306fc660b4fa309fb005.zip", |
|
|
60 |
], |
|
|
61 |
) |
|
|
62 |
|
|
|
63 |
http_archive( |
|
|
64 |
name = "sdsl_lite", |
|
|
65 |
build_file = "//:third_party/sdsl_lite.BUILD", |
|
|
66 |
sha256 = "24c454fae9f2b4e5d20ce7df9817027e1315bef2eca519e0f123a0b970b757d2", |
|
|
67 |
strip_prefix = "sdsl_lite-4cb63b65854983bec395d799aaff342bd0cc376f", |
|
|
68 |
urls = [ |
|
|
69 |
"https://github.com/mobinasri/sdsl_lite/archive/4cb63b65854983bec395d799aaff342bd0cc376f.zip", |
|
|
70 |
], |
|
|
71 |
) |
|
|
72 |
|
|
|
73 |
http_archive( |
|
|
74 |
name = "gbwtgraph", |
|
|
75 |
build_file = "//:third_party/gbwtgraph.BUILD", |
|
|
76 |
sha256 = "40c41c34b152a1eea6991e1acfdad8875e0c738e24cd36ca22dab5187c99a910", |
|
|
77 |
strip_prefix = "gbwtgraph-c96ca88b65fc40ac4bd371319a29111015d38904", |
|
|
78 |
urls = [ |
|
|
79 |
"https://github.com/mobinasri/gbwtgraph/archive/c96ca88b65fc40ac4bd371319a29111015d38904.zip", |
|
|
80 |
], |
|
|
81 |
) |
|
|
82 |
|
|
|
83 |
http_archive( |
|
|
84 |
name = "libdivsufsort", |
|
|
85 |
build_file = "//:third_party/libdivsufsort.BUILD", |
|
|
86 |
sha256 = "6a94e0ae99824b027a732062fab2ebd16091ada33ba1b90ba0e9892f2afec8b8", |
|
|
87 |
strip_prefix = "libdivsufsort-22e6b23e619ff50fd086844b6e618d53ca9d53bd", |
|
|
88 |
urls = [ |
|
|
89 |
"https://github.com/simongog/libdivsufsort/archive/22e6b23e619ff50fd086844b6e618d53ca9d53bd.zip", |
|
|
90 |
], |
|
|
91 |
) |
|
|
92 |
|
|
|
93 |
# Import tensorflow. Note path. |
|
|
94 |
local_repository( |
|
|
95 |
name = "org_tensorflow", |
|
|
96 |
path = "../tensorflow", |
|
|
97 |
) |
|
|
98 |
|
|
|
99 |
# Required boilerplate for tf_workspace(). |
|
|
100 |
# This is copied from https://github.com/tensorflow/tensorflow/blob/v2.3.0/WORKSPACE. |
|
|
101 |
http_archive( |
|
|
102 |
name = "io_bazel_rules_closure", |
|
|
103 |
sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", |
|
|
104 |
strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149", |
|
|
105 |
urls = [ |
|
|
106 |
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", |
|
|
107 |
"https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", # 2019-06-13 |
|
|
108 |
], |
|
|
109 |
) |
|
|
110 |
|
|
|
111 |
# This needs to be in sync with the version of protobuf used by TensorFlow, |
|
|
112 |
# which is currently defined in @tensorflow/tensorflow/workspace.bzl. |
|
|
113 |
# We supply our own BUILD file, though, so we can prevent ODR violations by |
|
|
114 |
# putting all of Nucleus's C++ binary dependencies into a single library. |
|
|
115 |
# That BUILD file must be kept in sync with the version of protobuf used. |
|
|
116 |
http_archive( |
|
|
117 |
name = "com_google_protobuf", |
|
|
118 |
build_file = "//:third_party/protobuf.BUILD", |
|
|
119 |
patch_args = ["-p1"], |
|
|
120 |
patches = ["//:third_party/protobuf.patch"], |
|
|
121 |
sha256 = "cfcba2df10feec52a84208693937c17a4b5df7775e1635c1e3baffc487b24c9b", |
|
|
122 |
# This protobuf release is based on protobuf 3.9.2. |
|
|
123 |
strip_prefix = "protobuf-3.9.2", |
|
|
124 |
urls = [ |
|
|
125 |
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/protocolbuffers/protobuf/archive/v3.9.2.zip", |
|
|
126 |
"https://github.com/protocolbuffers/protobuf/archive/v3.9.2.zip", |
|
|
127 |
], |
|
|
128 |
) |
|
|
129 |
|
|
|
130 |
http_archive( |
|
|
131 |
name = "com_google_glog", |
|
|
132 |
sha256 = "1ee310e5d0a19b9d584a855000434bb724aa744745d5b8ab1855c85bff8a8e21", |
|
|
133 |
strip_prefix = "glog-028d37889a1e80e8a07da1b8945ac706259e5fd8", |
|
|
134 |
urls = [ |
|
|
135 |
"https://mirror.bazel.build/github.com/google/glog/archive/028d37889a1e80e8a07da1b8945ac706259e5fd8.tar.gz", |
|
|
136 |
"https://github.com/google/glog/archive/028d37889a1e80e8a07da1b8945ac706259e5fd8.tar.gz", |
|
|
137 |
], |
|
|
138 |
) |
|
|
139 |
|
|
|
140 |
# bazel_skylib is now a required dependency of protobuf_archive. |
|
|
141 |
http_archive( |
|
|
142 |
name = "bazel_skylib", |
|
|
143 |
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", |
|
|
144 |
urls = [ |
|
|
145 |
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
|
|
146 |
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
|
|
147 |
], |
|
|
148 |
) |
|
|
149 |
|
|
|
150 |
http_archive( |
|
|
151 |
name = "pybind11_protobuf", |
|
|
152 |
sha256 = "21e0c32d81ece8039a3a8e6daafbd7f64cb0c2744492f3b00f11baa0e276d1a5", |
|
|
153 |
strip_prefix = "pybind11_protobuf-de94308491982c32ddfe305a5dfc3c38bc9ff2bc", |
|
|
154 |
urls = [ |
|
|
155 |
"https://github.com/pichuan/pybind11_protobuf/archive/de94308491982c32ddfe305a5dfc3c38bc9ff2bc.zip", |
|
|
156 |
], |
|
|
157 |
) |
|
|
158 |
|
|
|
159 |
# Import all of the tensorflow dependencies. |
|
|
160 |
# Copied from tensorflow/WORKSPACE. Updated in v2.5.0: |
|
|
161 |
load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3") |
|
|
162 |
|
|
|
163 |
tf_workspace3() |
|
|
164 |
|
|
|
165 |
load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2") |
|
|
166 |
|
|
|
167 |
tf_workspace2() |
|
|
168 |
|
|
|
169 |
load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1") |
|
|
170 |
|
|
|
171 |
tf_workspace1() |
|
|
172 |
|
|
|
173 |
load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0") |
|
|
174 |
|
|
|
175 |
tf_workspace0() |
|
|
176 |
|
|
|
177 |
new_local_repository( |
|
|
178 |
name = "clif", |
|
|
179 |
build_file = "third_party/clif.BUILD", |
|
|
180 |
path = "/usr/local", |
|
|
181 |
) |