diff options
author | Benjamin Peterson <bp@benjamin.pe> | 2017-10-26 11:38:13 +0200 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2017-10-26 14:37:15 +0200 |
commit | dbbcbcb8d227b0f35000f2a07b75524bfe1b681b (patch) | |
tree | ed925444bc41d51a6efb85bb612656ece6b6441f /src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java | |
parent | 4d6dbbbe4010315096ffa7986f94604f35d8672b (diff) |
Remove the runfiles middleman from py_binary's data runfiles.
This requires polluting Runfiles and RuleConfiguredTargetBuilder with
some custom infrastructure to lift a py_binary runfiles middleman into
the FilesToRunProviders and output groups of its reverse
dependency. That can all go away when the
--experimental_build_transitive_python_runfiles transition is
complete.
This is another step towards https://bazel-review.googlesource.com/c/bazel/+/14010.
Change-Id: Ib750d72d4be42324c8edec485707480690b9fc9c
PiperOrigin-RevId: 173514090
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java index 56c5185dc0..e0706923f2 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java @@ -107,7 +107,7 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory { ruleContext.getWorkspaceName(), ruleContext.getConfiguration().legacyExternalRunfiles()) .merge(commonRunfiles) - .addArtifact(runfilesSupport.getRunfilesMiddleman()) + .addLegacyExtraMiddleman(runfilesSupport.getRunfilesMiddleman()) .build(); } else { dataRunfiles = commonRunfiles; |