|
|
|
GetTag(self,
key)
Return a user-defined tag. |
source code
|
|
|
Tag(self,
key,
value)
Add a user-defined tag. |
source code
|
|
|
|
|
_add_child(self,
collection,
set,
child)
Adds 'child' to 'collection', first checking 'set' to see if it's
already present. |
source code
|
|
|
|
|
|
|
add_dependency(self,
depend)
Adds dependencies. |
source code
|
|
|
add_ignore(self,
depend)
Adds dependencies to ignore. |
source code
|
|
|
add_prerequisite(self,
prerequisite)
Adds prerequisites |
source code
|
|
|
|
|
|
|
add_to_waiting_parents(self,
node)
Returns the number of nodes added to our waiting parents list:
1 if we add a unique waiting parent, 0 if not. (Note that the
returned values are intended to be used to increment a reference
count, so don't think you can "clean up" this function by using
True and False instead...) |
source code
|
|
|
|
|
add_wkid(self,
wkid)
Add a node to the list of kids waiting to be evaluated |
source code
|
|
|
all_children(self,
scan=1)
Return a list of all the node's direct children. |
source code
|
|
|
alter_targets(self)
Return a list of alternate targets for this Node. |
source code
|
|
|
|
|
|
|
built(self)
Called just after this node is successfully built. |
source code
|
|
|
changed(self,
node=None,
allowcache=False)
Returns if the node is up-to-date with respect to the BuildInfo
stored last time it was built. The default behavior is to compare
it against our own previously stored BuildInfo, but the stored
BuildInfo from another Node (typically one in a Repository)
can be used instead. |
source code
|
|
|
children(self,
scan=1)
Return a list of the node's direct children, minus those
that are ignored by this node. |
source code
|
|
|
|
|
clear(self)
Completely clear a Node of all its cached state (so that it
can be re-evaluated by interfaces that do continuous integration
builds). |
source code
|
|
|
|
|
del_binfo(self)
Delete the build info from this node. |
source code
|
|
|
|
|
|
|
executor_cleanup(self)
Let the executor clean up any cached information. |
source code
|
|
|
|
|
|
|
for_signature(self)
Return a string representation of the Node that will always
be the same for this particular Node, no matter what. This
is by contrast to the __str__() method, which might, for
instance, return a relative path for a file Node. The purpose
of this method is to generate a value to be used in signature
calculation for the command line used to build a target, and
we use this method instead of str() to avoid unnecessary
rebuilds. This method does not need to return something that
would actually work in a command line; it can return any kind of
nonsense, so long as it does not change. |
source code
|
|
|
get_abspath(self)
Return an absolute path to the Node. This will return simply
str(Node) by default, but for Node types that have a concept of
relative path, this might return something different. |
source code
|
|
|
|
|
|
|
get_build_scanner_path(self,
scanner)
Fetch the appropriate scanner path for this node. |
source code
|
|
|
get_builder(self,
default_builder=None)
Return the set builder, or a specified default value |
source code
|
|
|
|
|
get_contents(self)
Fetch the contents of the entry. |
source code
|
|
|
|
|
|
|
|
|
get_executor(self,
create=1)
Fetch the action executor for this node. Create one if
there isn't already one, and requested to do so. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
get_stored_implicit(self)
Fetch the stored implicit dependencies |
source code
|
|
|
|
|
get_string(self,
for_signature)
This is a convenience function designed primarily to be
used in command generators (i.e., CommandGeneratorActions or
Environment variables that are callable), which are called
with a for_signature argument that is nonzero if the command
generator is being called to generate a signature for the
command line, which determines if we should rebuild or not. |
source code
|
|
|
get_subst_proxy(self)
This method is expected to return an object that will function
exactly like this Node, except that it implements any additional
special features that we would like to be in effect for
Environment variable substitution. The principle use is that
some Nodes would like to implement a __getattr__() method,
but putting that in the Node type itself has a tendency to kill
performance. We instead put it in a proxy and return it from
this method. It is legal for this method to return self
if no new functionality is needed for Environment substitution. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
is_literal(self)
Always pass the string representation of a Node to
the command interpreter literally. |
source code
|
|
|
is_up_to_date(self)
Default check for whether the Node is current: unknown Node
subtypes are always out of date, so they will always get built. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
postprocess(self)
Clean up anything we don't need to hang onto after we've
been built. |
source code
|
|
|
|
|
push_to_cache(self)
Try to push a node into a cache |
source code
|
|
|
|
|
remove(self)
Remove this Node: no-op by default. |
source code
|
|
|
render_include_tree(self)
Return a text representation, suitable for displaying to the
user, of the include tree for the sources of this node. |
source code
|
|
|
reset_executor(self)
Remove cached executor; forces recompute when needed. |
source code
|
|
|
|
|
rexists(self)
Does this node exist locally or in a repositiory? |
source code
|
|
|
scan(self)
Scan this node's dependents for implicit dependencies. |
source code
|
|
|
|
|
|
|
set_always_build(self,
always_build=1)
Set the Node's always_build value. |
source code
|
|
|
set_executor(self,
executor)
Set the action executor for this node. |
source code
|
|
|
|
|
set_nocache(self,
nocache=1)
Set the Node's nocache value. |
source code
|
|
|
set_noclean(self,
noclean=1)
Set the Node's noclean value. |
source code
|
|
|
set_precious(self,
precious=1)
Set the Node's precious value. |
source code
|
|
|
set_pseudo(self,
pseudo=True)
Set the Node's precious value. |
source code
|
|
|
|
|
|
|
visited(self)
Called just after this node has been visited (with or
without a build). |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|