The most important methods are (by usual order of call): 1
runnable_status: ask the task if it should be run, skipped, or if we have
to ask later 2 __str__: string to display to the user 3 run: execute the
task 4 post_run: after the task is run, update the cache about the
task
This class should be seen as an interface, it provides the very
minimum necessary for the scheduler so it does not do much.
For illustration purposes, TaskBase instances try to execute self.fun
(if provided)
|
|
__init__(self,
normal=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
runnable_status(self)
RUN_ME SKIP_ME or ASK_LATER |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
post_run(self)
update the dependency tree (node stats) |
source code
|
|
|
|
display(self)
print either the description (using __str__) or the progress bar or
the ide output |
source code
|
|
|
|
attr(self,
att,
default=None)
retrieve an attribute from the instance or from the class |
source code
|
|
|
|
hash_constraints(self)
identify a task type for all the constraints relevant for the
scheduler: precedence, file production |
source code
|
|
|
|
format_error(self)
error message to display to the user (when a build fails) |
source code
|
|
|
|
install(self)
installation is performed by looking at the task attributes: *
install_path: installation path like "${PREFIX}/bin" *
filename: install the first node in the outputs as a file with a
particular name, be certain to give os.sep * chmod: permissions |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|