diff options
author | 2016-03-03 13:14:38 +0000 | |
---|---|---|
committer | 2016-03-03 15:28:01 +0000 | |
commit | efd7ca1b420e00cf32839c07733e0e4a4d8b1bbb (patch) | |
tree | 04eee06d2b6e277f3d0eaa7f326f1ae843b56746 /src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java | |
parent | f745e99db7632cfb2145b6926f961e85f9084bc5 (diff) |
Python provider is now available in Skylark
Using mandatoryProvidersList to validate python rules' dependency.
Added a SkylarkProvider named 'py' which is a SkylarkClassObject in Java and a
struct in Skylark. Native python rule and Skylark python rule should have this provider
so that they can depend on each other.
RELNOTES[NEW]: Native python rule can depend on skylark rule as long as skylark
rule provides 'py' provider.
--
MOS_MIGRATED_REVID=116241504
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java index ae048a0a03..ab8d490e4b 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java @@ -76,7 +76,7 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory { Runfiles commonRunfiles = collectCommonRunfiles(ruleContext, common, semantics); Runfiles.Builder defaultRunfilesBuilder = new Runfiles.Builder(ruleContext.getWorkspaceName()) - .merge(commonRunfiles); + .merge(commonRunfiles); semantics.collectDefaultRunfilesForBinary(ruleContext, defaultRunfilesBuilder); Runfiles defaultRunfiles = defaultRunfilesBuilder.build(); |