Add visibility for bazel_pip prefixed packages.
This package prefix is used in open source Kokoro pip testing.
This fixes errors like this one:
target '//tensorflow/compiler/tests:xla_test' is not visible from target '//bazel_pip/tensorflow/compiler/tests:reshape_op_test_gpu'
PiperOrigin-RevId: 322367493
Change-Id: I632d05c0e769da782c11dca2eebe5732f8889ba8
diff --git a/tensorflow/BUILD b/tensorflow/BUILD
index 8a0918b..c4963a8 100644
--- a/tensorflow/BUILD
+++ b/tensorflow/BUILD
@@ -532,16 +532,14 @@
package_group(
name = "internal",
packages = [
- # To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/...",
"//learning/brain/swift/x10/...",
"//perftools/accelerators/xprof/api/...",
- "//third_party/py/autograph/...",
- "//third_party/swift/tensorflow/x10/...",
- "//third_party/swift/tensorflow_apis/...",
"//tensorflow/...",
"//tensorflow_estimator/python/estimator/...",
"//tensorflow_models/official/...",
+ "//third_party/py/autograph/...",
+ "//third_party/swift/tensorflow/x10/...",
+ "//third_party/swift/tensorflow_apis/...",
],
)
diff --git a/tensorflow/compiler/tests/BUILD b/tensorflow/compiler/tests/BUILD
index 1dd61c2..16eb3af 100644
--- a/tensorflow/compiler/tests/BUILD
+++ b/tensorflow/compiler/tests/BUILD
@@ -21,10 +21,6 @@
includes = [
"//tensorflow/compiler/tf2xla:internal",
],
- packages = [
- # To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/compiler/tests/...",
- ],
)
package_group(
@@ -34,7 +30,6 @@
],
packages = [
# To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/compiler/tests/...",
"//platforms/xla/tests/neural_nets",
],
)
diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD
index 09d22aa..365ef58 100644
--- a/tensorflow/python/BUILD
+++ b/tensorflow/python/BUILD
@@ -2757,8 +2757,6 @@
tf_gen_op_wrapper_private_py(
name = "array_ops_gen",
visibility = [
- # To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/compiler/tests:__pkg__",
"//learning/brain/python/ops:__pkg__",
"//tensorflow/compiler/tests:__pkg__",
"//tensorflow/python/kernel_tests:__pkg__",
@@ -2772,8 +2770,6 @@
tf_gen_op_wrapper_private_py(
name = "bitwise_ops_gen",
visibility = [
- # To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/compiler/tests:__pkg__",
"//learning/brain/python/ops:__pkg__",
"//tensorflow/compiler/tests:__pkg__",
"//tensorflow/contrib/quantization:__pkg__",
@@ -2969,8 +2965,6 @@
tf_gen_op_wrapper_private_py(
name = "math_ops_gen",
visibility = [
- # To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/compiler/tests:__pkg__",
"//learning/brain/google/python/ops:__pkg__",
"//learning/brain/python/ops:__pkg__",
"//tensorflow/compiler/tests:__pkg__",
@@ -2981,8 +2975,6 @@
tf_gen_op_wrapper_private_py(
name = "nn_ops_gen",
visibility = [
- # To pass open source testing in the pip Kokoros.
- "//bazel_pip/tensorflow/compiler/tests:__pkg__",
"//learning/brain/python/ops:__pkg__",
"//tensorflow/compiler/tests:__pkg__",
"//tensorflow/python/kernel_tests:__pkg__",