| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Package Node :: Module FS :: Class File |
|
Node--+ |Base--+ | File
A class for files in a file system.
| Method Summary | |
|---|---|
Initialize a generic Node.FS.Base object. | |
Return any corresponding targets in a build directory. | |
builder_set(self,
builder)
| |
Called just after this node is successfully built. | |
changed_content(self,
target,
prev_ni)
| |
changed_since_last_build(self,
target,
prev_ni)
| |
changed_state(self,
target,
prev_ni)
| |
changed_timestamp_match(self,
target,
prev_ni)
| |
changed_timestamp_newer(self,
target,
prev_ni)
| |
changed_timestamp_then_content(self,
target,
prev_ni)
| |
convert_old_entry(self,
old_entry)
| |
decide_source(self,
target,
prev_ni)
| |
decide_target(self,
target,
prev_ni)
| |
Create a directory node named 'name' relative to the SConscript directory of this file. | |
Create a list of directories relative to the SConscript directory of this file. | |
diskcheck_match(self)
| |
do_duplicate(self,
src)
| |
Create an entry node named 'name' relative to the SConscript directory of this file. | |
Does this node exists? | |
Create a file node named 'name' relative to the SConscript directory of this file. | |
find_src_builder(self)
| |
get_cachedir_bsig(self)
| |
Fetch a Node's content signature for purposes of computing another Node's cachesig. | |
get_contents(self)
| |
Generate a node's content signature, the digested signature of its content. | |
Return the included implicit dependencies in this file. | |
get_size(self)
| |
Fetch the stored implicit dependencies | |
get_stored_info(self)
| |
get_timestamp(self)
| |
Return whether this Node has a source builder or not. | |
Default check for whether the Node is current: unknown Node subtypes are always out of date, so they will always get built. | |
Get a Node ready for evaluation. | |
Prepare for this file to be created. | |
rel_path(self,
other)
| |
Remove this file. | |
Try to retrieve the node's content from a cache | |
rfile(self)
| |
A Node.FS.Base object's string representation is its path name. | |
scanner_key(self)
| |
Make the build signature permanent (that is, store it in the .sconsign file or equivalent). | |
Called just after this node has been visited (with or without a build). | |
_createDir(self)
| |
_get_found_includes_key(self,
env,
scanner,
path)
| |
Turn a file system node into a File object. | |
_rmv_existing(self)
| |
| Inherited from Base | |
A Node.FS.Base object's string representation is its path name. | |
Return a string representation of the Node that will always be the same for this particular Node, no matter what. | |
Get the absolute path of the file. | |
| |
Return path relative to the current working directory of the Node.FS.Base object that owns us. | |
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. | |
| |
| |
| |
| |
| |
| |
| |
This node, which already existed, is being looked up as the specified klass. | |
Search for a list of directories in the Repository list. | |
| |
Does this node exist locally or in a repositiory? | |
Return all of the directories for a given path list, including corresponding "backing" directories in any repositories. | |
| |
Set the source code builder for this node. | |
Fetch the source code builder for this node. | |
If this node is in a build path, return the node corresponding to its source file. | |
| |
Generates a target entry that corresponds to this entry (usually a source file) with the specified prefix and suffix. | |
| |
| |
| |
| |
| Inherited from Node | |
Adds dependencies. | |
Adds dependencies to ignore. | |
Adds prerequisites | |
Adds sources. | |
| |
Returns the number of nodes added to our waiting parents list: 1 if we add a unique waiting parent, 0 if not. | |
| |
Add a node to the list of kids waiting to be evaluated | |
Return a list of all the node's direct children. | |
Actually build the node. | |
| |
Returns if the node is up-to-date with respect to the BuildInfo stored last time it was built. | |
Return a list of the node's direct children, minus those that are ignored by this node. | |
Alternate check for whether the Node is current: If all of our children were up-to-date, then this Node was up-to-date, too. | |
Completely clear a Node of all its cached state (so that it can be re-evaluated by interfaces that do continuous integration builds). | |
| |
| |
Delete the build info from this node. | |
| |
| |
| |
| |
Let the executor clean up any cached information. | |
| |
Fetch a node's build information. | |
Fetch the appropriate Environment to build this node. | |
Fetch the appropriate scanner path for this node. | |
Return the set builder, or a specified default value | |
| |
| |
Fetch the action executor for this node. | |
Return a list of implicit dependencies for this node. | |
| |
Fetch the source scanner for the specified node | |
| |
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. | |
| |
Return whether this Node has a builder or not. | |
Return whether this Node has an explicit builder | |
Returns true iff this node is derived (i.e. | |
Always pass the string representation of a Node to the command interpreter literally. | |
| |
Return whether this Node has a builder or not. | |
| |
| |
Clean up anything we don't need to hang onto after we've been built. | |
Return a text representation, suitable for displaying to the user, of the include tree for the sources of this node. | |
Remove cached executor; forces recompute when needed. | |
Scan this node's dependents for implicit dependencies. | |
Selects a scanner for this Node. | |
Set the Node's always_build value. | |
Set the action executor for this node. | |
| |
Set the Node's nocache value. | |
Set the Node's noclean value. | |
Set the Node's precious value. | |
| |
| |
Adds 'child' to 'collection', first checking 'dict' to see if it's already present. | |
| |
| |
| |
| Class Variable Summary | |
|---|---|
classobj |
BuildInfo = SCons.Node.FS.FileBuildInfo |
list |
convert_copy_attrs = ['bsources', 'bimplicit', 'bdepends...
|
list |
convert_sig_attrs = ['bsourcesigs', 'bimplicitsigs', 'bd...
|
list |
memoizer_counters = [<SCons.Memoize.CountValue instance ...
|
classobj |
NodeInfo = SCons.Node.FS.FileNodeInfo |
| Method Details |
|---|
__init__(self,
name,
directory,
fs)
|
alter_targets(self)Return any corresponding targets in a build directory.
|
built(self)Called just after this node is successfully built.
|
Dir(self, name, create=True)Create a directory node named 'name' relative to the SConscript directory of this file. |
Dirs(self, pathlist)Create a list of directories relative to the SConscript directory of this file. |
Entry(self, name)Create an entry node named 'name' relative to the SConscript directory of this file. |
exists(self)Does this node exists?
|
File(self, name)Create a file node named 'name' relative to the SConscript directory of this file. |
get_cachedir_csig(self)Fetch a Node's content signature for purposes of computing another Node's cachesig. This is a wrapper around the normal get_csig() method that handles the somewhat obscure case of using CacheDir with the -n option. Any files that don't exist would normally be "built" by fetching them from the cache, but the normal get_csig() method will try to open up the local file, which doesn't exist because the -n option meant we didn't actually pull the file from cachedir. But since the file does actually exist in the cachedir, we can use its contents for the csig.
|
get_csig(self)Generate a node's content signature, the digested signature of its content. node - the node cache - alternate node to use for the signature cache returns - the content signature
|
get_found_includes(self, env, scanner, path)Return the included implicit dependencies in this file. Cache results so we only scan the file once per path regardless of how many times this information is requested.
|
get_stored_implicit(self)Fetch the stored implicit dependencies
|
has_src_builder(self)Return whether this Node has a source builder or not. If this Node doesn't have an explicit source code builder, this is where we figure out, on the fly, if there's a transparent source code builder for it. Note that if we found a source builder, we also set the self.builder attribute, so that all of the methods that actually build this file don't have to do anything different. |
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.
|
make_ready(self)Get a Node ready for evaluation. This is called before the Taskmaster decides if the Node is up-to-date or not. Overriding this method allows for a Node subclass to be disambiguated if necessary, or for an implicit source builder to be attached.
|
prepare(self)Prepare for this file to be created.
|
remove(self)Remove this file.
|
retrieve_from_cache(self)Try to retrieve the node's content from a cache This method is called from multiple threads in a parallel build, so only do thread safe stuff here. Do thread unsafe stuff in built(). Returns true iff the node was successfully retrieved.
|
rstr(self)A Node.FS.Base object's string representation is its path name.
|
store_info(self)Make the build signature permanent (that is, store it in the .sconsign file or equivalent).
|
visited(self)Called just after this node has been visited (with or without a build).
|
_morph(self)Turn a file system node into a File object. |
| Class Variable Details |
|---|
convert_copy_attrs
|
convert_sig_attrs
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 | http://epydoc.sf.net |