From e7557ddfc49cb19b402c70e491f14f10719d19b8 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Fri, 4 Mar 2016 19:48:33 +0000 Subject: Changed py_wrap_cc rule's dependency validation to mandatoryProvdersList so that it can depend on Skylark rule. -- MOS_MIGRATED_REVID=116385078 --- .../java/com/google/devtools/build/lib/rules/python/PyCommon.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 eff1239649..34c66f1413 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 @@ -329,6 +329,12 @@ public final class PyCommon { return builder.build(); } + public NestedSet collectTransitivePythonSourcesWithoutLocal() { + NestedSetBuilder builder = NestedSetBuilder.compileOrder(); + collectTransitivePythonSourcesFrom(getTargetDeps(), builder); + return builder.build(); + } + public NestedSet collectImports( RuleContext ruleContext, PythonSemantics semantics) { NestedSetBuilder builder = NestedSetBuilder.compileOrder(); -- cgit v1.2.3