aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java
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 /src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java
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 'src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java
index adc0ccae37..f41d99baca 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyLibrary.java
@@ -83,7 +83,6 @@ public abstract class PyLibrary implements RuleConfiguredTargetFactory {
} else {
runfilesBuilder.addTransitiveArtifacts(filesToBuild);
}
- runfilesBuilder.setEmptyFilesSupplier(PythonUtils.GET_INIT_PY_FILES);
runfilesBuilder.add(ruleContext, PythonRunfilesProvider.TO_RUNFILES);
runfilesBuilder.addRunfiles(ruleContext, RunfilesProvider.DEFAULT_RUNFILES);