r$Lc @sdZdZddkZddkZddklZddklZddkZ ddk Z ddk Z ddkl Z dZ dZd Zd Zd Zd Zd Zhdd6dd 6dd 6dd 6dd 6dd 6ZdZdZdZdZeZdefdYZdefdYZdefdYZdeifdYZdZ dZ!dZd efd!YZ"gZ#dS("sPSCons.Node The Node package for the SCons software construction utility. This is, in many ways, the heart of SCons. A Node is where we encapsulate all of the dependency information about any thing that SCons can build, or about any thing which SCons can use to build some other thing. The canonical "thing," of course, is a file, but a Node can also represent something remote (like a web page) or something completely abstract (like an Alias). Each specific type of "thing" is specifically represented by a subclass of the Node base class: Node.FS.File for files, Node.Alias for aliases, etc. Dependency information is kept here in the base class, and information specific to files/aliases/etc. is in the subclass. The goal, if we've done this correctly, is that any type of "thing" should be able to depend on any other type of "thing." s@src/engine/SCons/Node/__init__.py 5023 2010/06/14 22:05:46 sconsiN(tchain(tlogInstanceCreation(tTracecCst|iiddS(Nt.i(tstrt __class__tsplit(tobj((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt classname9siiiiiitno_statetpendingt executingt up_to_datetexecutedtfailedcCsdS(N((tnode((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt do_nothing^st NodeInfoBasecBsJeZdZdZddZdZdZdZdddZ RS( s The generic base class for signature information for a Node. Node subclasses should subclass NodeInfoBase to provide their own logic for dealing with their own Node-specific signature information. icCs|i|_dS(N(tcurrent_version_idt _version_id(tselfR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt__init__lscCsy |i}Wntj odSXxu|D]m}yt||Wntj onXyt|d|}Wntj oq+Xt|||q+WdS(Ntget_(t field_listtAttributeErrortdelattrtgetattrtsetattr(RRRtftfunc((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytupdateps cCsdS(N((RRtval((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytconvertscCs|ii|idS(N(t__dict__R(Rtother((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytmergesic Cs|djo<y |i}WqItj ot|ii}qIXng}xo|D]g}yt||}Wntj o d}nXt|}|o|d|}n|i|qVW|S(Ns: ( tNoneRRtsortedR!tkeysRRtappend(RRtnamestfieldstfieldR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytformats"    N( t__name__t __module__t__doc__RR$RRR R#R+(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRds    t BuildInfoBasecBs)eZdZdZddZdZRS(s The generic base class for build information for a Node. This is what gets stored in a .sconsign file for each target file. It contains a NodeInfo instance for this node (signature information that's specific to the type of Node) and direct attributes for the generic build stuff we have to track: sources, explicit dependencies, implicit dependencies, and action information. icCs4|i|_g|_g|_g|_d|_dS(N(RRt bsourcesigst bdependsigst bimplicitsigsR$tbactsig(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRs     cCs|ii|idS(N(R!R(RR"((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR#sN(R,R-R.RR$RR#(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR/s  tNodecBseZdZeiioeiiZngZde fdYZ dZ d[dZ dZeieiiddZdZd Zd d Zd Zd ZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&d[dZ'e$Z(dZ)d Z*d!Z+d"Z,hd#Z-d$Z.d%Z/d&Z0d'Z1d(Z2d)Z3d*d+Z4e5Z6e7Z8d,Z9d-Z:d.Z;d/Z<d0Z=d1Z>d2Z?d3Z@d4ZAd5ZBd6ZCd d7ZDd d8ZEd d9ZFd d:ZGd;ZHd<ZId=ZJd>ZKd?ZLd@ZMdAZNdBZOdCZPdDZQdEZRdFZSeieiidGdHZTd dIZUd dJZVdKZWdLZXdMZYdNZZdOZ[dPZ\d[dQZ]dRZ^dSZ_dTZ`dUZadVZbdWZcdXZddYZedZZfRS(\sbThe base Node class, for entities that we know how to build, or use to build other Nodes. tAttrscBseZRS((R,R-(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR5scCst|dg|_t|_t|_g|_t|_g|_t|_ t i i |_ d|_t|_t|_d|_d|_d|_t|_d|_d|_d|_d|_d|_|i|_d|_g|_d|_ |i!t"|dS(Ns Node.Nodei(#Rtsourcestsett sources_settFalset_specific_sourcestdependst depends_settignoret ignore_settSConstUtilt UniqueListt prerequisitesR$timplicittwaiting_parentst waiting_s_et ref_counttwkidstenvR tstatetprecioustnocleantnocachet always_buildtincludesR5t attributest side_effectt side_effectstlinkedtclear_memoized_valuestAnnotate(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRs6                        cCs|S(N((Rt must_exist((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt disambiguatescCsdS(Nt((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt get_suffixst get_build_envcCsHy|idSWntj onX|ii}||id<|S(s>Fetch the appropriate Environment to build this node. RY(t_memotKeyErrort get_executorRY(Rtresult((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRYs cCs|ii|S(s1Fetch the appropriate scanner path for this node.(R\tget_build_scanner_path(Rtscanner((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR^scCs ||_dS(s&Set the action executor for this node.N(texecutor(RR`((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt set_executorsic Csy |i}Wntj o|pny|ii}Wn+tj otiid|g}n?Xtii||ip |ii|iig|g|i }||_nX|S(spFetch the action executor for this node. Create one if there isn't already one, and requested to do so.ttargets( R`RtbuildertactionR?tExecutortNullRHt overridesR6(RtcreateR`tact((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR\s     cCs:y|idd}Wntj on X|idS(s1Let the executor clean up any cached information.RhN(R\R$Rtcleanup(RR`((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytexecutor_cleanups cCs+yt|dWntj onXdS(s5Remove cached executor; forces recompute when needed.R`N(RR(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytreset_executor"scCsdS(s(Try to push a node into a cache N((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt push_to_cache)scCsdS(sTry 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. i((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytretrieve_from_cache.s cCsdS(s 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. N((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt make_ready=scCsxD|iD]9}|io&d}tii|||fq q W|idj oKxH|iD]9}|io&d}tii|||fqaqaWn|i|_dS(s{Prepare for this Node to be built. This is called after the Taskmaster has decided that the Node is out-of-date and must be rebuilt, but before actually calling the method to build the Node. This default implementation checks that explicit or implicit dependencies either exist or are derived, and initializes the BuildInfo structure that will hold the information about how this node is, uh, built. (The existence of source files is checked separately by the Executor, which aggregates checks for all of the targets built by a specific action.) Overriding this method allows for for a Node subclass to remove the underlying file from the file system. Note that subclass methods should call this base class method to get the child check and the BuildInfo structure. s:Explicit dependency `%s' not found, needed by target `%s'.s:Implicit dependency `%s' not found, needed by target `%s'.N( R;tmissingR?tErrorst StopErrorRCR$t get_binfotbinfo(Rtdtmsgti((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytprepareGs  $  (cKsEy|i||Wn'tiij o}||_nXdS(sActually build the node. This is called by the Taskmaster after it's decided that the Node is out-of-date and must be rebuilt, and after the prepare() method has gotten everything, uh, prepared. This method is called from multiple threads in a parallel build, so only do thread safe stuff here. Do thread unsafe stuff in built(). N(R\R?Rqt BuildErrorR(Rtkwte((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytbuildgs  cCs;x|iD]}d|_q W|i|ii|dS(s2Called just after this node is successfully built.N(RDR$RCtcleartninfoR(Rtparent((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytbuiltys    cCsAy |i}Wntj onX|ii||idS(sOCalled just after this node has been visited (with or without a build).N(RtRR~Rt store_info(RRt((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytvisiteds  cCs|ii|dS(N(REtadd(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytadd_to_waiting_s_escCs,|i}||jodS|i|dS(sK Returns the number of nodes added to our waiting parents list: 1 if we add a unique waiting parent, 0 if not. (Note that the returned values are intended to be used to increment a reference count, so don't think you can "clean up" this function by using True and False instead...) ii(RDR(RRtwp((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytadd_to_waiting_parentss    cCs|it|_dS(sLClean up anything we don't need to hang onto after we've been built.N(RkR7RD(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt postprocesss cCsa|i|i|i|_|iyt|dWntj onXd|_dS(sCompletely clear a Node of all its cached state (so that it can be re-evaluated by interfaces that do continuous integration builds). t_calculated_sigN( t del_binfoRSt new_ninfoR~RkRRR$RN(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR}s   cCs h|_dS(N(RZ(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRSscCs-||_y |`Wntj onXdS(N(RcR`R(RRc((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt builder_sets   cCs:y |i}Wn tj od}|_nX|dj S(sReturn whether this Node has a builder or not. In Boolean tests, this turns out to be a *lot* more efficient than simply examining the builder attribute directly ("if node.builder: ..."). When the builder attribute is examined directly, it ends up calling __getattr__ for both the __len__ and __nonzero__ attributes on instances of our Builder Proxy class(es), generating a bazillion extra calls and slowing things down immensely. N(RcRR$(Rtb((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt has_builders  cCs ||_dS(N(t is_explicit(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt set_explicitscCs2y |iSWn tj od|_|iSXdS(sReturn whether this Node has an explicit builder This allows an internal Builder created by SCons to be marked non-explicit, so that it can be overridden by an explicit builder that the user supplies (the canonical example being directories).N(RRR$(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pythas_explicit_builders   cCs&y |iSWntj o|SXdS(s4Return the set builder, or a specified default valueN(RcR(Rtdefault_builder((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt get_builders cCs|ip|iS(s Returns true iff this node is derived (i.e. built). This should return true only for nodes whose path should be in the variant directory when duplicate=0 and should contribute their build signatures when they are used as source files to other derived files. For example: source with source builders are not derived in this sense, and hence should not return true. (RRP(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt is_deriveds cCs gdfS(s:Return a list of alternate targets for this Node. N(R$(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt alter_targetsscCsgS(sReturn the scanned include lines (implicit dependencies) found in this node. The default is no implicit dependencies. We expect this method to be overridden by any subclass that can be scanned for implicit dependencies. ((RRHR_tpath((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_found_includessc Cs|pgS|g}h}d||RRtbactR?R@t MD5signaturet get_contentsR3R:R6R'tget_unignored_sourcesR=R7RRtbsourcesR0R;tbdependsR1RCt bimplicitR2(RRtR`R>R6tsRRR0R;t dependsigsRuRCt implicitsigsRw((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRss\                       cCs+yt|dWntj onXdS(s%Delete the build info from this node.RtN(RR(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRscCsVy|iiSWnAtj o5|i}tii|i|_|iiSXdS(N(R~tcsigRRR?R@RR(RR~((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_csigs  cCs |iS(N(R(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_cachedir_csigscCsdS(scMake the build signature permanent (that is, store it in the .sconsign file or equivalent).N((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRscCsdS(N((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytdo_not_store_infoscCsdS(N(R$(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_stored_infoscCsdS(s&Fetch the stored implicit dependenciesN(R$(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR scCs ||_dS(sSet the Node's precious value.N(RJ(RRJ((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt set_preciousscCs|odpd|_dS(sSet the Node's noclean value.iiN(RK(RRK((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt set_nocleanscCs|odpd|_dS(sSet the Node's nocache value.iiN(RL(RRL((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt set_nocachescCs ||_dS(s"Set the Node's always_build value.N(RM(RRM((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytset_always_build!scCsdS(sDoes this node exists?i((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytexists%scCs |iS(s1Does this node exist locally or in a repositiory?(R(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytrexists*scCs$|i o|i o |i S(N(RRRR(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRp/s cCsdS(s$Remove this Node: no-op by default.N(R$(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytremove4scCsy|i|i|i|Wntj oy}|id}tii|ott t |}n t |}ti i dt ||t |fnXdS(sAdds dependencies.isEattempted to add a non-Node dependency to %s: %s is a %s, not a NodeN(RR;R<t TypeErrortargsR?R@tis_ListtlisttmapRRqt UserErrorttype(RtdependR{R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytadd_dependency8s  cCs|ii||idS(sAdds prerequisitesN(RBRR(Rt prerequisite((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytadd_prerequisiteDscCsy|i|i|i|Wntj oy}|id}tii|ott t |}n t |}ti i dt ||t |fnXdS(sAdds dependencies to ignore.isHattempted to ignore a non-Node dependency of %s: %s is a %s, not a NodeN(RR=R>RRR?R@RRRRRqRR(RRR{R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt add_ignoreIs  cCs|iodSy|i|i|i|Wntj oy}|id}tii|ot t t |}n t |}ti i dt ||t|fnXdS(s Adds sources.NisDattempted to add a non-Node as source of %s: %s is a %s, not a Node(R:RR6R8RRR?R@RRRRRqRR(RtsourceR{R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt add_sourceUs   cCsad}x?|D]7}||jo$|i||i|d}q q W|o|indS(sZAdds 'child' to 'collection', first checking 'set' to see if it's already present.iN(R$RR'R(Rt collectionR7tchildtaddedtc((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRcs   cCs|i|t|_dS(N(RtTrueR:(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytset_specific_sourcets cCs(|idj o|ii|ndS(s6Add a node to the list of kids waiting to be evaluatedN(RGR$R'(Rtwkid((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytadd_wkidxscCs|i|idS(N(RSRk(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR}s t _children_getcCsy|idSWntj onX|io|idjot|i|i}nt|i|i|i}g}xn|D]'}||ijo|i|qqWn<|idjo|i|i}n|i|i|i}||id<|S(Nt children_get( RZR[R>RCR$RR6R;R'(RtitertchildrenRw((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRs$  cCsM|o|in|idjo|i|iS|i|i|iSdS(s0Return a list of all the node's direct children.N(RRCR$R6R;(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt all_childrens cCs|o|in|iS(s_Return a list of the node's direct children, minus those that are ignored by this node.(RR(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRscCs ||_dS(N(RI(RRI((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt set_statescCs|iS(N(RI(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt get_statescCs|itiijS(N(RIR?R4R (Rttargettprev_ni((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytstate_has_changedscCs3|i}|pddk}|ii}n|S(Ni(RHtSCons.DefaultstDefaultstDefaultEnvironment(RRHR?((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_envs   cCs tdS(s Must be overridden in a specific subclass to return True if this Node (a dependency) has changed since the last time it was used to build the specified target. prev_ni is this Node's state (for example, its file timestamp, length, maybe content signature) as of the last time the target was built. Note that this method is called through the dependency, not the target, because a dependency Node must be able to use its own logic to decide if it changed. For example, File Nodes need to obey if we're configured to use timestamps, but Python Value Nodes never use timestamps and always use the content. If this method were called through the target, then each Node's implementation of this method would have to have more complicated logic to handle all the different Node types on which it might depend. N(tNotImplementedError(RRR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytchanged_since_last_buildscCstii||ddS(NR(R?R@t AddMethod(Rtfunction((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytDecidersc Csd}|o!td|t||fn|djo |}nt}|ii}|i|i|i}|i }t |t |}|oI|i dg||o$tdt |t |fnt }nxSt ||D]B\}} |i|| o#|otd|nt }qqW|ii} |io^ddk} | ii| } |i| jo,|otd|i| fnt }qn|p|otdqn|otd n|S( s Returns if the node is up-to-date with respect to the BuildInfo stored last time it was built. The default behavior is to compare it against our own previously stored BuildInfo, but the stored BuildInfo from another Node (typically one in a Repository) can be used instead. Note that we now *always* check every dependency. We used to short-circuit the check by returning as soon as we detected any difference, but we now rely on checking every dependency to make sure that any necessary Node information (for example, the content signature of an #included .h file) is updated. ischanged(%s [%s], %s)s: old %s new %ss : %s changediNs: bactsig %s != newsig %ss : up to dates (RRR$R9RRtR0R1R2RtlenRRtzipRR\RRt SCons.UtilR@RR3( RRttR]tbitthenRtdiffRRtcontentsR?tnewsig((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytchangedsF!   $    cCsdS(sDefault check for whether the Node is current: unknown Node subtypes are always out of date, so they will always get built.N(R$(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR0scCs|i|_|iodSd}xI|idD]8}|i}|o| p ||jo |}q4q4W|djp|tiijS(sAlternate check for whether the Node is current: If all of our children were up-to-date, then this Node was up-to-date, too. The SCons.Node.Alias and SCons.Node.Python.Value subclasses rebind their current() method to this method.iN( RsRtRMR$RRR?R4R (RRItkidR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytchildren_are_up_to_date5s  cCsdS(s]Always pass the string representation of a Node to the command interpreter literally.i((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt is_literalFscCs|io|iox|i}xm|iD]Z}|i|}|o|i|}nd}|||d}tii ||dSWndSdS(s Return a text representation, suitable for displaying to the user, of the include tree for the sources of this node. cSs|i|||S(N(R(RRHR_R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRXsiN( RRHRYR6RR^R$R?R@t render_tree(RRHRR_RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytrender_include_treeKs  cCs t|S(s Return an absolute path to the Node. This will return simply str(Node) by default, but for Node types that have a concept of relative path, this might return something different. (R(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt get_abspath^scCs t|S(s Return a string representation of the Node that will always be the same for this particular Node, no matter what. This is by contrast to the __str__() method, which might, for instance, return a relative path for a file Node. The purpose of this method is to generate a value to be used in signature calculation for the command line used to build a target, and we use this method instead of str() to avoid unnecessary rebuilds. This method does not need to return something that would actually work in a command line; it can return any kind of nonsense, so long as it does not change. (R(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt for_signaturefs cCs|o |iSt|S(sThis 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. Such command generators should use this method in preference to str(Node) when converting a Node to a string, passing in the for_signature parameter, such that we will call Node.for_signature() or str(Node) properly, depending on whether we are calculating a signature or actually constructing a command line.(RR(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt get_stringus cCs|S(sy 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. The principle use is that some Nodes would like to implement a __getattr__() method, but putting that in the Node type itself has a tendency to kill performance. We instead put it in a proxy and return it from this method. It is legal for this method to return self if no new functionality is needed for Environment substitution. ((R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_subst_proxys cCs|ip d|S|io d|S|i}|djodS|i}|iy2|i|i|i}|i |i |i }Wnt j o d|SX|i }|i|i|i}|i |i |i }tt||}tt||}|iid} g} g} |D]} | |jo | | q.q.~ } | oKtt| | } d}| ig}| D]}|||q~nxh|D]`}||jo| id| |q|i|||o| id| |qqWt| djoX||joK| id d dtt| |fd dtt| |fnt| djod}|i|ijoe|i|ijo!| id|d|iq| id|d|i|d|iqnt| djo d|Sd|}t| djod|| dfSd|g| } di| SdS(Ns'building `%s' because it doesn't exist s3rebuilding `%s' because AlwaysBuild() is specified sNCannot explain why `%s' is being rebuilt: No previous build information found cSs+t|dot||St|S(Ntdir(RR(RtE((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt stringifyss`%s' is no longer a dependency s`%s' is a new dependency s `%s' changed isthe dependency order changed: s %sold: %s t is %snew: %s cSs@|id}dddt|}d||i|dS(Ns Ris (RRtjoin(ttitletstrlinestlinestsep((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytfmt_with_titless)the contents of the build action changed saction: sthe build action changed: sold: snew: s$rebuilding `%s' for unknown reasons srebuilding `%s' becauseis%s %ss%s: i s s s (RRMRR$Rttprepare_dependenciesRRRR0R1R2RRstdictRRtEntryRRRR'RRR3RR(Rtoldt old_bkidst old_bkidsigstnewt new_bkidst new_bkidsigstosigtnsigRRRRtremovedtfmtt_[2]RtkRtpreamble((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytexplainsh          20   %    N(gR,R-R.R?tMemoizet use_memoizertMemoized_Metaclasst __metaclass__tmemoizer_counterstobjectR5RR$RVRXR't CountValueRYR^RaR\RkRlRmRnRoRxR|RRRRRR}RSRRRRRt multiple_side_effect_has_builderRRRRRRRRRRRRRRR/RRRRRsRRRRRRRRRRRRRRpRRRRRRRRRRRRRRRRRRRRR R R RRRRR,(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR4s  0                          0      @                      *         8        tNodeListcBseZdZRS(cCstttt|iS(N(RRRtdata(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt__str__s(R,R-R7(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR5scCs |iS(N(R(RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt get_childrenscCsdS(N((Rtstack((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyt ignore_cyclescCsdS(N((RR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRstWalkercBs2eZdZeeedZdZdZRS(s/An iterator for walking a Node tree. This is depth-first, children are visited before the parent. The Walker object can be initialized with any node, and returns the next node on the descent with each get_next() call. 'kids_func' is an optional function that will be called to get the children of a node instead of calling 'children'. 'cycle_func' is an optional function that will be called when a cycle is detected. This class does not get caught in node cycles caused, for example, by C header file include loops. cCs\||_||_||_ti||d|_|g|_h|_d|i|((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyRs     cCs+x$|io|idio|idiid}|idipd|id_n||ijo|i||iq"ti|i||id|_|ii|d|i|(RRR((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytget_nexts( %   cCs|i S(N(R9(R((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytis_done&s( R,R-R.R8R:RRRARB(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pyR;s   ($R.t __revision__t collectionsR?t itertoolsRt SCons.DebugRtSCons.ExecutorR?t SCons.MemoizeRRRR R R R R Rt StateStringRRRRRTR2RR/R4tUserListR5R8R:R;targ2nodes_lookups(((s6install/lib/scons-2.0.0.final.0/SCons/Node/__init__.pytsR        2?   ;