diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python')
3 files changed, 6 insertions, 5 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 a60e0d7e88..9cd591a909 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 @@ -40,7 +40,7 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory { protected abstract PythonSemantics createSemantics(); @Override - public ConfiguredTarget create(RuleContext ruleContext) { + public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException { PyCommon common = new PyCommon(ruleContext); common.initCommon(common.getDefaultPythonVersion()); @@ -51,8 +51,8 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory { return builder.build(); } - static RuleConfiguredTargetBuilder init( - RuleContext ruleContext, PythonSemantics semantics, PyCommon common) { + static RuleConfiguredTargetBuilder init(RuleContext ruleContext, PythonSemantics semantics, + PyCommon common) throws InterruptedException { CcLinkParamsStore ccLinkParamsStore = initializeCcLinkParamStore(ruleContext); List<Artifact> srcs = common.validateSrcs(); diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyTest.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyTest.java index f433eb81e8..076005ab15 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PyTest.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyTest.java @@ -30,7 +30,7 @@ public abstract class PyTest implements RuleConfiguredTargetFactory { protected abstract PythonSemantics createSemantics(); @Override - public ConfiguredTarget create(RuleContext ruleContext) { + public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException { PythonSemantics semantics = createSemantics(); PyCommon common = new PyCommon(ruleContext); common.initCommon(getDefaultPythonVersion(ruleContext)); diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java index 357020029b..55d421ddc7 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java @@ -65,7 +65,8 @@ public interface PythonSemantics { /** * Called at the end of the analysis of {@code py_binary} rules. + * @throws InterruptedException */ void postInitBinary(RuleContext ruleContext, RunfilesSupport runfilesSupport, - PyCommon common); + PyCommon common) throws InterruptedException; } |