aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2015-10-27 00:14:49 +0000
committerGravatar Florian Weikert <fwe@google.com>2015-10-27 11:51:02 +0000
commit317ebd534057f85950931784514377a103473afe (patch)
tree10d890175bd379d991c47d8de2c305ffc2d50d29 /src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java
parent4835caa1138954eb5700a0055d636b405a8d1482 (diff)
Un-hardcode the names of some Python implicit attributes ($python_precompile, etc.)
-- MOS_MIGRATED_REVID=106352835
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java
new file mode 100644
index 0000000000..99928d1d9e
--- /dev/null
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonImplicitAttributes.java
@@ -0,0 +1,22 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+package com.google.devtools.build.lib.rules.python;
+
+/**
+ * Various implicit attributes names that Python rules use, such as the Python proto runtime.
+ */
+public class PythonImplicitAttributes {
+ public static final String DEFAULT_PYTHON_PRECOMPILE_ATTRIBUTE = "$python_precompile";
+ public static final String DEFAULT_HOST_PYTHON2_RUNTIME_ATTRIBUTE = ":host_python2_runtime";
+}