Add a blank py_strict_library that expands to the normal py_library. Use it in autograph/BUILD.
PiperOrigin-RevId: 291943552 Change-Id: I782be6e676f5d0833b46df11b6263530873b60d0
This commit is contained in:
parent
6499c855f5
commit
c68f4bf21c
tensorflow
@ -1,3 +1,5 @@
|
||||
load("//tensorflow:tensorflow.bzl", "py_strict_library")
|
||||
|
||||
package(
|
||||
licenses = ["notice"], # Apache 2.0
|
||||
)
|
||||
@ -14,7 +16,7 @@ filegroup(
|
||||
visibility = ["//tensorflow:__subpackages__"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
py_strict_library(
|
||||
name = "autograph",
|
||||
srcs = [
|
||||
"__init__.py",
|
||||
@ -23,9 +25,10 @@ py_library(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//tensorflow/python:util",
|
||||
"//tensorflow/python/autograph/core",
|
||||
"//tensorflow/python/autograph/impl",
|
||||
"//tensorflow/python/autograph/lang",
|
||||
"//tensorflow/python/autograph/pyct",
|
||||
"//tensorflow/python/autograph/operators",
|
||||
"//tensorflow/python/autograph/utils",
|
||||
],
|
||||
)
|
||||
|
@ -1888,6 +1888,10 @@ register_extension_info(
|
||||
label_regex_for_dep = "{extension_name}",
|
||||
)
|
||||
|
||||
# Placeholder to use until bazel supports py_strict_library.
|
||||
def py_strict_library(name, **kwargs):
|
||||
native.py_library(name = name, **kwargs)
|
||||
|
||||
def tf_custom_op_py_library(
|
||||
name,
|
||||
srcs = [],
|
||||
|
Loading…
Reference in New Issue
Block a user