systemlibs: unbundle absl_py dependency

absl_py has rules in many dirs so this uses system_link_files to put
files in the right place.

Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
Jason Zaman 2018-09-06 22:04:03 +08:00
parent 37f7bfbce8
commit 206d46704e
5 changed files with 25 additions and 0 deletions

View File

@ -341,6 +341,11 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
],
sha256 = "95160f778a62c7a60ddeadc7bf2d83f85a23a27359814aca12cf949e896fa82c",
strip_prefix = "abseil-py-pypi-v0.2.2",
system_build_file = clean_dep("//third_party/systemlibs:absl_py.BUILD"),
system_link_files = {
"//third_party/systemlibs:absl_py.absl.flags.BUILD": "absl/flags/BUILD",
"//third_party/systemlibs:absl_py.absl.testing.BUILD": "absl/testing/BUILD",
},
)
tf_http_archive(

1
third_party/systemlibs/absl_py.BUILD vendored Normal file
View File

@ -0,0 +1 @@
licenses(["notice"]) # Apache 2.0

View File

@ -0,0 +1,11 @@
licenses(["notice"]) # Apache 2.0
package(default_visibility = ["//visibility:public"])
filegroup(
name = "LICENSE",
)
py_library(
name = "flags",
)

View File

@ -0,0 +1,7 @@
licenses(["notice"]) # Apache 2.0
py_library(
name = "parameterized",
testonly = 1,
visibility = ["//visibility:public"],
)

View File

@ -10,6 +10,7 @@
_TF_SYSTEM_LIBS = "TF_SYSTEM_LIBS"
VALID_LIBS = [
"absl_py",
"astor_archive",
"boringssl",
"com_googlesource_code_re2",