aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/py_native/BUILD
diff options
context:
space:
mode:
authorGravatar Mouad Benchchaoui <mbenchchaoui@newstore.com>2018-02-14 05:09:15 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-14 05:10:36 -0800
commit0f9c6ea574918dda094cf5423fa3822112846c30 (patch)
tree52b1deea8f09ef9ed23fd68589a227f8f14c412f /examples/py_native/BUILD
parentb4545ba2b1aa4079b09a346a6d441ffa1e1b7d20 (diff)
Make __init__.py files creation optional
Introduce a new attribute to py_binary and py_test to control whether to create `__init__.py` or not. Fixes https://github.com/bazelbuild/rules_python/issues/55 Closes #4470. PiperOrigin-RevId: 185672243
Diffstat (limited to 'examples/py_native/BUILD')
-rw-r--r--examples/py_native/BUILD3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/py_native/BUILD b/examples/py_native/BUILD
index 9d52fd6848..aafa7b77c7 100644
--- a/examples/py_native/BUILD
+++ b/examples/py_native/BUILD
@@ -10,6 +10,7 @@ filegroup(
py_binary(
name = "bin",
srcs = ["bin.py"],
+ legacy_create_init = False,
deps = [
":lib",
"//examples/py_native/fibonacci",
@@ -24,6 +25,7 @@ py_library(
py_test(
name = "test",
srcs = ["test.py"],
+ legacy_create_init = False,
deps = [
":lib",
"//examples/py_native/fibonacci",
@@ -33,5 +35,6 @@ py_test(
py_test(
name = "fail",
srcs = ["fail.py"],
+ legacy_create_init = False,
deps = [":lib"],
)