aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-10 15:11:20 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-02-10 16:34:49 +0000
commit18eed30723f5c73850737a693001ca02ecd7717b (patch)
treea22491d4af8b2db1af9eec4bf96159c841504c30 /examples
parent6f07b795763fcde7716fa12d124c65e553a50c47 (diff)
Fix //src/test/shell/bazel:bazel_example_test
Python sources filegroup was broken by the addition of a new package -- MOS_MIGRATED_REVID=114323099
Diffstat (limited to 'examples')
-rw-r--r--examples/py_native/BUILD5
-rw-r--r--examples/py_native/fibonacci/BUILD8
2 files changed, 12 insertions, 1 deletions
diff --git a/examples/py_native/BUILD b/examples/py_native/BUILD
index 5a82223cf8..9d52fd6848 100644
--- a/examples/py_native/BUILD
+++ b/examples/py_native/BUILD
@@ -1,6 +1,9 @@
filegroup(
name = "srcs",
- srcs = glob(["*.py"]) + ["BUILD"],
+ srcs = glob(["*.py"]) + [
+ "BUILD",
+ "//examples/py_native/fibonacci:srcs",
+ ],
visibility = ["//examples:__pkg__"],
)
diff --git a/examples/py_native/fibonacci/BUILD b/examples/py_native/fibonacci/BUILD
index c3ee9b0fea..10da5110bf 100644
--- a/examples/py_native/fibonacci/BUILD
+++ b/examples/py_native/fibonacci/BUILD
@@ -1,3 +1,11 @@
+filegroup(
+ name = "srcs",
+ srcs = glob(["*.py"]) + [
+ "BUILD",
+ ],
+ visibility = ["//examples/py_native:__pkg__"],
+)
+
py_library(
name = "fibonacci",
srcs = ["fib.py"],