def add_sub_artifact( self, artifact_name, build_func=None, sources=None, source_obj=None, config_hash=None, ): """Sometimes it can happen that while building an artifact another artifact needs building. This function is generally used to record this request. """ if self.build_state is None: raise TypeError( "The context does not have a build state which " "means that artifact declaration is not possible." ) aft = self.build_state.new_artifact( artifact_name=artifact_name, sources=sources, source_obj=source_obj, config_hash=config_hash, ) self.sub_artifacts.append((aft, build_func)) reporter.report_sub_artifact(aft)
def add_sub_artifact(self, artifact_name, build_func=None, sources=None, source_obj=None): """Sometimes it can happen that while building an artifact another artifact needs building. This function is generally used to record this request. """ aft = self.build_state.new_artifact(artifact_name=artifact_name, sources=sources, source_obj=source_obj) self.sub_artifacts.append((aft, build_func)) reporter.report_sub_artifact(aft)
def add_sub_artifact(self, artifact_name, build_func=None, sources=None, source_obj=None): """Sometimes it can happen that while building an artifact another artifact needs building. This function is generally used to record this request. """ aft = self.build_state.new_artifact( artifact_name=artifact_name, sources=sources, source_obj=source_obj, ) self.sub_artifacts.append((aft, build_func)) reporter.report_sub_artifact(aft)
def add_sub_artifact(self, artifact_name, build_func=None, sources=None, source_obj=None, config_hash=None): """Sometimes it can happen that while building an artifact another artifact needs building. This function is generally used to record this request. """ if self.build_state is None: raise TypeError('The context does not have a build state which ' 'means that artifact declaration is not possible.') aft = self.build_state.new_artifact( artifact_name=artifact_name, sources=sources, source_obj=source_obj, config_hash=config_hash, ) self.sub_artifacts.append((aft, build_func)) reporter.report_sub_artifact(aft)