diff options
author | Benjamin Peterson <bp@benjamin.pe> | 2017-09-26 08:15:27 -0400 |
---|---|---|
committer | John Cater <jcater@google.com> | 2017-09-26 09:30:25 -0400 |
commit | 3b0bcd9f550cdcd37c668651e552a4dff70033d7 (patch) | |
tree | 0d2093bdd10cd57adc1ca01671f3c0ec04b71d3b /src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java | |
parent | e69bcce4f81b0a2380fcc30ae355a1eb02f6cea1 (diff) |
Add an option to control building of transitive py_binary runfiles trees. ,
)
Currently, "bazel build :script" constructs the
bazel-bin/python-prog.runfiles tree.
We'd like to do anyway with this behavior but doing so is a
backwards-incompatible change. To facilitate a transition, this CL
adds an option --experimental_build_transitive_python_runfiles to
control the behavior. In the example above, "bazel build
--noexperimental_build_transitive_python_runfiles :script" won't
construct bazel-bin/python-prog.runfiles.
Change-Id: If4d5a84c956a0bbac9067dcf38a00e5732c450f2
PiperOrigin-RevId: 170038245
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java index 3895240b1b..91fa75106c 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java @@ -37,7 +37,10 @@ public class PythonConfigurationLoader implements ConfigurationFragmentFactory { boolean ignorePythonVersionAttribute = pythonOptions.forcePython != null; PythonVersion pythonVersion = pythonOptions.getPythonVersion(); return new PythonConfiguration( - pythonVersion, ignorePythonVersionAttribute, pythonOptions.buildPythonZip); + pythonVersion, + ignorePythonVersionAttribute, + pythonOptions.buildPythonZip, + pythonOptions.buildTransitiveRunfilesTrees); } @Override |