Skip to content

Commit

Permalink
Improve run-prereq.sh and BUILD file, fixing a runtime issue.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 448756982
  • Loading branch information
pichuan authored and copybara-github committed May 15, 2022
1 parent 60b4b63 commit 684d4d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 15 additions & 1 deletion deeptrio/protos/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//third_party:clif.bzl", "pyclif_proto_library")
load("@com_google_protobuf//:protobuf.bzl", "py_proto_library")
load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library", "py_proto_library")

package(
default_visibility = [
Expand All @@ -22,6 +22,20 @@ proto_library(
],
)

cc_proto_library(
name = "deeptrio_cc_pb2",
srcs = ["deeptrio.proto"],
default_runtime = "@com_google_protobuf//:protobuf",
protoc = "@com_google_protobuf//:protoc",
deps = [
"//deepvariant/protos:realigner_cc_pb2",
"//deepvariant/protos:resources_cc_pb2",
"//third_party/nucleus/protos:position_cc_pb2",
"//third_party/nucleus/protos:reads_cc_pb2",
"//third_party/nucleus/protos:variants_cc_pb2",
],
)

# buildozer: disable=LANG_proto_library-colocation
# buildozer: disable=LANG_proto_library-single-deps
py_proto_library(
Expand Down
3 changes: 3 additions & 0 deletions run-prereq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,7 @@ sudo -H apt-get install "${APT_ARGS[@]}" libssl-dev libcurl4-openssl-dev liblz-d
# for the debruijn graph
sudo -H apt-get install "${APT_ARGS[@]}" libboost-graph-dev > /dev/null

# Just being safe, pin protobuf's version one more time.
pip3 install "${PIP_ARGS[@]}" 'protobuf==3.13.0'

note_build_stage "run-prereq.sh complete"

0 comments on commit 684d4d3

Please sign in to comment.