aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
diff options
context:
space:
mode:
authorGravatar mstaib <mstaib@google.com>2017-09-20 21:49:26 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-09-21 11:03:33 +0200
commitbef0c45326281aa0bc55b51044579ea81f96f0ad (patch)
tree737959596a4e84930ce7511f491b2493fb9ea756 /src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
parentcf03c3dc8971588e2d5deb9831f2843fd39a2f6e (diff)
Move --build_python_zip into PythonConfiguration.
There's no need for it in the core configuration options, as it's used exclusively by Python rules. RELNOTES: None. PiperOrigin-RevId: 169435643
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
index 81b4c564c3..8aad3cc53b 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
@@ -135,7 +135,7 @@ public final class PyCommon {
NestedSetBuilder<Artifact> filesToBuildBuilder =
NestedSetBuilder.<Artifact>stableOrder().addAll(srcs).add(executable);
- if (ruleContext.getConfiguration().buildPythonZip()) {
+ if (ruleContext.getFragment(PythonConfiguration.class).buildPythonZip()) {
filesToBuildBuilder.add(getPythonZipArtifact(executable));
}