| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Module Environment :: Class OverrideEnvironment |
|
SubstitutionEnvironment--+ |Base--+ | OverrideEnvironment
A proxy that overrides variables in a wrapped construction environment by returning values from an overrides dictionary in preference to values from the underlying subject environment.
This is a lightweight (I hope) proxy that passes through most use of attributes to the underlying Environment.Base class, but has just enough additional methods defined to act like a real construction environment with overridden values. It can wrap either a Base construction environment, or another OverrideEnvironment, which can in turn nest arbitrary OverrideEnvironments...
Note that we do not call the underlying base class (SubsitutionEnvironment) initialization, because we get most of those from proxying the attributes of the subject construction environment. But because we subclass SubstitutionEnvironment, this class also has inherited arg2nodes() and subst*() methods; those methods can't be proxied because they need this object's methods to fetch the values from the overrides dictionary.
| Method Summary | |
|---|---|
__init__(self,
subject,
overrides)
| |
__delitem__(self,
key)
| |
__getattr__(self,
name)
| |
__getitem__(self,
key)
| |
__setattr__(self,
name,
value)
| |
__setitem__(self,
key,
value)
| |
Emulates the items() method of dictionaries. | |
Emulates the get() method of dictionaries. | |
gvars(self)
| |
has_key(self,
key)
| |
Emulates the items() method of dictionaries. | |
lvars(self)
| |
Replace existing construction variables in an Environment with new construction variables and/or values. | |
Update an environment's values directly, bypassing the normal checks that occur when users try to set items. | |
| Inherited from Base | |
| |
| |
| |
| |
| |
Append values to existing construction variables in an Environment. | |
Append path elements to the path 'name' in the 'ENV' dictionary for this environment. | |
Append values to existing construction variables in an Environment, if they're not already there. | |
| |
| |
| |
| |
Return a copy of a construction Environment. | |
Builds the supplied target files from the supplied source files using the supplied action. | |
| |
| |
| |
Explicity specify that 'target's depend on 'dependency'. | |
Return the first available program in progs. | |
| |
Using the standard Python pretty printer, dump the contents of the scons build environment to stdout. | |
| |
| |
Directly execute an action through an Environment | |
| |
| |
returns the list of all targets of the Install and InstallAs Builder. | |
Search a list of paths for something that matches the prefix and suffix. | |
returns a list of all source files. | |
| |
Fetch the builder with the specified name from the environment. | |
| |
Return a factory function for creating Nodes for this construction environment. | |
Find the appropriate scanner given a key (usually a file suffix). | |
| |
| |
| |
| |
Ignore a dependency. | |
| |
| |
Tags a target so that it will not be cached | |
Tags a target so that it will not be cleaned by -c | |
Use the specified function to parse the output of the command in order to modify the current environment. | |
Parse a mkdep-style file for explicit dependencies. | |
| |
| |
Prepend values to existing construction variables in an Environment. | |
Prepend path elements to the path 'name' in the 'ENV' dictionary for this environment. | |
Append values to existing construction variables in an Environment, if they're not already there. | |
Replace old_prefix with new_prefix and old_suffix with new_suffix. | |
| |
Specify that 'prerequisite' must be built before 'target', (but 'target' does not actually depend on 'prerequisite' and need not be rebuilt if it changes). | |
| |
Delete the cached scanner map (if we need to). | |
| |
| |
Tell scons that side_effects are built as side effects of building targets. | |
Arrange for a source code builder for (part of) a tree. | |
| |
This function converts a string or list into a list of strings or Nodes. | |
| |
| |
| |
Find prog in the path. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Inherited from SubstitutionEnvironment | |
| |
Adds the specified function as a method of this construction environment with the specified name. | |
| |
| |
Merge the dict in args into the construction variables. | |
Produce a modified environment whose variables are overriden by the overrides dictionaries. | |
Parse the set of flags and return a dict with the flags placed in the appropriate entry. | |
Removes the specified function's MethodWrapper from the added_methods list, so we don't re-bind it when making a clone. | |
Recursively interpolates construction variables from the Environment into the specified string, returning the expanded result. | |
| |
Calls through to SCons.Subst.scons_subst_list(). | |
Substitute a path list, turning EntryProxies into Nodes and leaving Nodes (and other objects) as-is. | |
Recursively interpolates construction variables from the Environment into the specified string, returning the expanded result. | |
Initial the dispatch tables for special handling of special construction variables. | |
| Class Variable Summary | |
|---|---|
| Inherited from Base | |
list |
memoizer_counters = [<SCons.Memoize.CountValue instance ...
|
| Method Details |
|---|
Dictionary(self)Emulates the items() method of dictionaries.
|
get(self, key, default=None)Emulates the get() method of dictionaries. |
items(self)Emulates the items() method of dictionaries. |
Replace(self, **kw)Replace existing construction variables in an Environment with new construction variables and/or values.
|
_update(self, dict)Update an environment's values directly, bypassing the normal checks that occur when users try to set items.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 | http://epydoc.sf.net |