aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.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/PythonConfigurationLoader.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/PythonConfigurationLoader.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PythonConfigurationLoader.java3
1 files changed, 2 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 d85c586412..3895240b1b 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
@@ -36,7 +36,8 @@ public class PythonConfigurationLoader implements ConfigurationFragmentFactory {
PythonOptions pythonOptions = buildOptions.get(PythonOptions.class);
boolean ignorePythonVersionAttribute = pythonOptions.forcePython != null;
PythonVersion pythonVersion = pythonOptions.getPythonVersion();
- return new PythonConfiguration(pythonVersion, ignorePythonVersionAttribute);
+ return new PythonConfiguration(
+ pythonVersion, ignorePythonVersionAttribute, pythonOptions.buildPythonZip);
}
@Override