| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Package Node :: Module FS :: Class RootDir |
|
Node--+ |Base--+ |Dir--+ | RootDir
A class for the root directory of a file system.
This is the same as a Dir class, except that the path separator ('/' or '') is actually part of the name, so we don't need to add a separator when creating the path names of entries within this directory.
| Method Summary | |
|---|---|
__init__(self,
name,
fs)
| |
A Node.FS.Base object's string representation is its path name. | |
entry_abspath(self,
name)
| |
entry_labspath(self,
name)
| |
entry_path(self,
name)
| |
entry_tpath(self,
name)
| |
get_dir(self)
| |
is_under(self,
dir)
| |
This node, which already existed, is being looked up as the specified klass. | |
Fetch the source code builder for this node. | |
up(self)
| |
| Inherited from Dir | |
| |
Return any corresponding targets in a build directory. | |
A null "builder" for directories. | |
| |
Looks up or creates a directory node named 'name' relative to this directory. | |
| |
| |
| |
Looks up or creates an entry node named 'name' relative to this directory. | |
| |
Looks up or creates a file node named 'name' relative to this directory. | |
| |
| |
Return aggregate contents of all our children. | |
| |
Return this directory's implicit dependencies. | |
| |
Return the latest timestamp from among our children | |
Returns a list of repositories for this directory. | |
Returns a list of Nodes (or strings) matching a specified pathname pattern. | |
If any child is not up-to-date, then this directory isn't, either. | |
Set this directory as the build directory for the supplied source directory. | |
Return whether this Node has a builder or not. | |
Prepare for this Node to be built. | |
| |
Return a path to "other" relative to this directory. | |
A directory does not get scanned. | |
Return the .sconsign file info for this directory, creating it first if necessary. | |
| |
| |
| |
Dir has a special need for srcnode()...if we have a srcdir attribute set, then that is our srcnode. | |
Walk this directory tree by calling the specified function for each directory in the tree. | |
| Inherited from Base | |
Does this node exists? | |
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. | |
| |
| |
| |
| |
| |
| |
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. | |
A Node.FS.Base object's string representation is its path name. | |
| |
Set the source code builder for this node. | |
| |
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. | |
| |
Called just after this node is successfully built. | |
| |
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 | |
| |
Fetch the stored implicit dependencies | |
| |
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. | |
Get a Node ready for evaluation. | |
| |
| |
| |
Clean up anything we don't need to hang onto after we've been built. | |
Remove this Node: no-op by default. | |
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. | |
Try to retrieve the node's content from a cache | |
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. | |
| |
| |
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). | |
| Class Variable Summary | |
|---|---|
| Inherited from Dir | |
list |
memoizer_counters = [<SCons.Memoize.CountValue instance ...
|
| Method Details |
|---|
__str__(self)
|
must_be_same(self, klass)This node, which already existed, is being looked up as the specified klass. Raise an exception if it isn't.
|
src_builder(self)Fetch the source code builder for this node. If there isn't one, we cache the source code builder specified for the directory (which in turn will cache the value from its parent directory, and so on up to the file system root).
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 | http://epydoc.sf.net |