Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body If CompareEq AttributeLoad NameLoad attr Str body Return Str orelse If CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num body Return Str orelse If CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num body Return Str orelse Return Str orelse If CompareEq AttributeLoad NameLoad attr Str body Return Str orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults Call NameLoad body Expr Str Assign NameStore BinOpAdd Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad orelse TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If NameLoad body Return AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad NameLoad Index Num TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Assign NameStore Num If CompareLtE BinOpAdd Call NameLoad Lambda arguments args NameParam NameParam defaults BinOpAdd NameLoad Call NameLoad NameLoad NameLoad Num Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad Call NameLoad NameLoad Str attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Str If AttributeLoad AttributeLoad NameLoad attr attr body Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Num Str Call AttributeLoad NameLoad attr NameLoad Str Return ListLoad SubscriptLoad NameLoad Index Num BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad Str NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults Call NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A SCons.Platform

SCons platform selection.

This looks for modules that define a callable object that can modify a
construction environment as appropriate for a given platform.

Note that we take a more simplistic view of "platform" than Python does.
We're looking for a single string that determines a set of
tool-independent variables with which to initialize a construction
environment.  Consequently, we'll examine both sys.platform and os.name
(and anything else that might come in to play) in order to return some
specification which is unique enough for our purposes.

Note that because this subsysem just *selects* a callable that can
modify a construction environment, it's possible for people to define
their own "platform specification" in an arbitrary callable function.
No one needs to use or tie in to this subsystem in order to roll
their own platform definition.
 N/A __revision__ src/engine/SCons/Platform/__init__.py 3897 2009/01/13 06:45:54 scons N/A imp N/A os N/A string N/A sys N/A tempfile N/A SCons.Errors N/A SCons.Tool platform_default N/A N/A N/A N/A N/A Return the platform string for our execution environment.

    The returned value should map to one of the SCons/Platform/*.py
    files.  Since we're architecture independent, though, we don't
    care about the machine architecture.
     N/A osname N/A os name N/A N/A osname java N/A N/A osname N/A os _osType N/A N/A osname posix N/A N/A N/A N/A sys platform cygwin N/A N/A cygwin N/A N/A N/A N/A N/A string find N/A sys platform irix -1 N/A N/A irix N/A N/A N/A N/A N/A string find N/A sys platform sunos -1 N/A N/A sunos N/A N/A N/A N/A N/A string find N/A sys platform hp-ux -1 N/A N/A hpux N/A N/A N/A N/A N/A string find N/A sys platform aix -1 N/A N/A aix N/A N/A N/A N/A N/A string find N/A sys platform darwin -1 N/A N/A darwin N/A N/A posix N/A N/A N/A N/A os name os2 N/A N/A os2 N/A N/A N/A sys platform N/A platform_module N/A N/A name N/A N/A platform_default N/A N/A Return the imported module for the platform.

    This looks for a module name that matches the specified argument.
    If the name is unspecified, we fetch the appropriate default for
    our execution environment.
     N/A full_name N/A SCons.Platform. name N/A N/A N/A N/A N/A sys modules has_key full_name N/A N/A N/A N/A os name java N/A N/A N/A eval full_name N/A N/A N/A N/A N/A file path desc N/A N/A imp find_module name N/A N/A N/A sys modules N/A SCons.Platform __path__ N/A N/A N/A mod N/A N/A imp load_module full_name file path desc N/A N/A file N/A N/A N/A N/A file close N/A N/A N/A ImportError N/A N/A N/A N/A zipimport N/A importer N/A N/A zipimport zipimporter N/A N/A N/A N/A sys modules N/A SCons.Platform __path__ N/A 0 N/A mod N/A N/A importer load_module full_name N/A N/A N/A ImportError N/A N/A N/A N/A SCons Errors UserError N/A No platform named '%s' name N/A N/A setattr N/A SCons Platform name mod N/A N/A N/A sys modules N/A full_name N/A DefaultToolList N/A N/A platform env N/A N/A N/A Select a default tool list for the specified platform.
     N/A N/A N/A N/A SCons Tool tool_list platform env N/A PlatformSpec N/A N/A __init__ N/A N/A self name N/A N/A N/A N/A self name name N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A N/A TempFileMunge N/A N/A N/A A callable class.  You can set an Environment variable to this,
    then call it with a string argument, then it will perform temporary
    file substitution on it.  This is used to circumvent the long command
    line limitation.

    Example usage:
    env["TEMPFILE"] = TempFileMunge
    env["LINKCOM"] = "${TEMPFILE('$LINK $TARGET $SOURCES')}"

    By default, the name of the temporary file used begins with a
    prefix of '@'.  This may be configred for other tool chains by
    setting '$TEMPFILEPREFIX'.

    env["TEMPFILEPREFIX"] = '-@'        # diab compiler
    env["TEMPFILEPREFIX"] = '-via'      # arm tool chain
     __init__ N/A N/A self cmd N/A N/A N/A N/A self cmd cmd N/A __call__ N/A N/A self target source env for_signature N/A N/A N/A for_signature N/A N/A N/A self cmd N/A cmd N/A N/A N/A env subst_list N/A self cmd 0 target source N/A 0 N/A N/A N/A maxline N/A int N/A N/A env subst $MAXLINELENGTH N/A N/A N/A ValueError N/A N/A maxline 2048 N/A N/A N/A N/A reduce N/A N/A N/A x y N/A N/A x N/A len y cmd 0 N/A len cmd maxline N/A N/A N/A self cmd N/A tmp N/A N/A N/A os path normpath N/A N/A tempfile mktemp .lnk N/A native_tmp N/A N/A N/A SCons Util get_native_path tmp N/A N/A N/A env N/A SHELL N/A N/A env N/A SHELL sh N/A N/A native_tmp N/A N/A string replace native_tmp \ \\\\ N/A rm N/A N/A N/A env Detect rm del N/A N/A rm del N/A prefix N/A N/A env subst $TEMPFILEPREFIX N/A N/A prefix N/A N/A prefix @ N/A args N/A map N/A N/A SCons Subst quote_spaces N/A cmd N/A 1 N/A N/A N/A N/A open tmp w write N/A N/A N/A string join args N/A N/A N/A SCons Action print_actions N/A N/A N/A N/A N/A N/A N/A Using tempfile  native_tmp  for command line:
 N/A str N/A cmd N/A 0 N/A N/A string join args N/A N/A N/A cmd N/A 0 N/A N/A N/A prefix native_tmp rm native_tmp N/A N/A Platform N/A N/A name N/A N/A platform_default N/A N/A Select a canned Platform specification.
     N/A module N/A platform_module name N/A spec N/A PlatformSpec name N/A N/A spec __call__ N/A module generate N/A spec N/A