Decider¶
Decider classes to evaluate whether a build is needed.
- class disseminate.builders.deciders.decider.Decider(env)¶
A decider to evaluate whether a build is needed.
- property decision¶
Return the Decision class associated with this decider.
- decision_cls¶
- class disseminate.builders.deciders.decider.Decision(parent_decider)¶
A decision to build.
- The base decision checks to see if the input files and output file
exist.
- Parameters
- parent_decider
builders.decider.Decider
The parent decider instance that created this decision.
- parent_decider
- build_needed(inputs, output, reset=False)¶
Determine whether a build is needed.
- Parameters
- inputsList[str,
paths.SourcePath
, tuple] The input infilepaths, strings and arguments to use in the build.
- output
paths.TargetPath
The outfilepath for the built file
- resetOptional[bool]
If True, reset cached values in determining whether the build is needed.
- inputsList[str,
- Raises
- MissingInputFiles
Raise if one or more of the input files are missing.