Turn more global functions into Environment methods. (clone of 0.92.C121)
[scons.git] / src / engine / SCons / Environment.py
index 2e95d810cb017e590218979a39ae31b14131a095..f2beb38081f679afc010bf278e56bf0f60c49f03 100644 (file)
@@ -171,7 +171,7 @@ class BuilderDict(UserDict):
         for i, v in dict.items():
             self.__setitem__(i, v)
 
-class Environment:
+class Base:
     """Base class for construction Environments.  These are
     the primary objects used to communicate dependency and
     construction information to the build engine.
@@ -847,3 +847,11 @@ class Environment:
             self._build_signature = 0
         else:
             raise SCons.Errors.UserError, "Unknown target signature type '%s'"%type
+
+# The entry point that will be used by the external world
+# to refer to a construction environment.  This allows the wrapper
+# interface to extend a construction environment for its own purposes
+# by subclassing SCons.Environment.Base and then assigning the
+# class to SCons.Environment.Environment.
+
+Environment = Base