diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PythonSourcesProvider.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/python/PythonSourcesProvider.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonSourcesProvider.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonSourcesProvider.java index 7df4609db8..fcdb8cfb89 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PythonSourcesProvider.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonSourcesProvider.java @@ -27,6 +27,8 @@ import com.google.devtools.build.lib.syntax.SkylarkModule; @Immutable @SkylarkModule(name = "PythonSourcesProvider", doc = "") public final class PythonSourcesProvider implements TransitiveInfoProvider { + /** The name of the field in Skylark used to access this class. */ + public static final String SKYLARK_NAME = "py"; private final NestedSet<Artifact> transitivePythonSources; private final boolean usesSharedLibraries; @@ -40,7 +42,8 @@ public final class PythonSourcesProvider implements TransitiveInfoProvider { /** * Returns the Python sources in the transitive closure of this target. */ - @SkylarkCallable(name = "transitive_srcs", doc = "", structField = true) + @SkylarkCallable( + name = "transitive_sources", doc = "The transitive set of Python sources", structField = true) public NestedSet<Artifact> getTransitivePythonSources() { return transitivePythonSources; } |