aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.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/PythonOptions.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/PythonOptions.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java
index fa1b8f700e..517ab3dbfa 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java
@@ -18,6 +18,7 @@ import com.google.devtools.common.options.EnumConverter;
import com.google.devtools.common.options.Option;
import com.google.devtools.common.options.OptionDocumentationCategory;
import com.google.devtools.common.options.OptionEffectTag;
+import com.google.devtools.common.options.TriState;
/**
* Python-related command-line options.
@@ -35,6 +36,15 @@ public class PythonOptions extends FragmentOptions {
}
@Option(
+ name = "build_python_zip",
+ defaultValue = "auto",
+ documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help = "Build python executable zip; on on Windows, off on other platforms"
+ )
+ public TriState buildPythonZip;
+
+ @Option(
name = "force_python",
defaultValue = "null",
category = "version",
@@ -70,6 +80,7 @@ public class PythonOptions extends FragmentOptions {
} else {
hostPythonOpts.forcePython = PythonVersion.PY2;
}
+ hostPythonOpts.buildPythonZip = buildPythonZip;
return hostPythonOpts;
}
}