The Node package for the SCons software construction utility.
This is, in many ways, the heart of SCons.
A Node is where we encapsulate all of the dependency information about
any thing that SCons can build, or about any thing which SCons can use
to build some other thing. The canonical "thing," of course, is a file,
but a Node can also represent something remote (like a web page) or
something completely abstract (like an Alias).
Each specific type of "thing" is specifically represented by a subclass
of the Node base class: Node.FS.File for files, Node.Alias for aliases,
etc. Dependency information is kept here in the base class, and
information specific to files/aliases/etc. is in the subclass. The
goal, if we've done this correctly, is that any type of "thing" should
be able to depend on any other type of "thing."
|
|
|
|
|
|
|
is_derived_node(node)
Returns true if this node is derived (i.e. built). |
source code
|
|
|
|
|
|
|
|
|
exists_entry(node)
Return if the Entry exists. Check the file system to see
what we should turn into first. Assume a file if there's no
directory. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
get_contents_entry(node)
Fetch the contents of the entry. Returns the exact binary
contents of the file. |
source code
|
|
|
get_contents_dir(node)
Return content signatures and names of all our children
separated by new-lines. Ensure that the nodes are sorted. |
source code
|
|
|
|
|
target_from_source_none(node,
prefix,
suffix,
splitext) |
source code
|
|
|
target_from_source_base(node,
prefix,
suffix,
splitext) |
source code
|
|
|
changed_since_last_build_node(node,
target,
prev_ni)
Must be overridden in a specific subclass to return True if this
Node (a dependency) has changed since the last time it was used
to build the specified target. prev_ni is this Node's state (for
example, its file timestamp, length, maybe content signature)
as of the last time the target was built. |
source code
|
|
|
changed_since_last_build_alias(node,
target,
prev_ni) |
source code
|
|
|
changed_since_last_build_entry(node,
target,
prev_ni) |
source code
|
|
|
changed_since_last_build_state_changed(node,
target,
prev_ni) |
source code
|
|
|
|
|
|
|
changed_since_last_build_python(node,
target,
prev_ni) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
__revision__ = ' src/engine/SCons/Node/__init__.py rel_2.4.0:33 ...
|
|
print_duplicate = 0
|
|
no_state = 0
|
|
pending = 1
|
|
executing = 2
|
|
up_to_date = 3
|
|
executed = 4
|
|
failed = 5
|
|
StateString = { 0: ' no_state ' , 1: ' pending ' , 2: ' executing ' , 3: ...
|
|
implicit_cache = 0
|
|
implicit_deps_unchanged = 0
|
|
implicit_deps_changed = 0
|
|
interactive = False
|
|
_is_derived_map = {0: is_derived_none, 1: is_derived_node}
|
|
_exists_map = {0: exists_none, 1: exists_always, 2: exists_bas...
|
|
_rexists_map = {0: rexists_none, 1: rexists_node, 2: rexists_b...
|
|
_get_contents_map = {0: get_contents_none, 1: get_contents_ent...
|
|
_target_from_source_map = {0: target_from_source_none, 1: targ...
|
|
_decider_map = {0: changed_since_last_build_node, 1: changed_s...
|
|
do_store_info = True
|
|
store_info_map = {0: store_info_pass, 1: store_info_file}
|
|
arg2nodes_lookups = [ <bound method AliasNameSpace.lookup of {}>]
|
|
__package__ = ' SCons.Node '
|