[Scons-dev] How to traverse the graph after files are read

Gary Oberbrunner garyo at oberbrunner.com
Tue May 19 08:19:54 EDT 2015


At the end of your SConstruct, start with the target nodes and recurse into
each node.sources . This is incomplete of course if you have any source
generation or emitters etc. But it may be useful depending on what you're
doing.

-- 
Gary (sent from my Android)
On May 19, 2015 3:58 AM, "anatoly techtonik" <techtonik at gmail.com> wrote:

> So far I discovered Taskmaster.
>
>     Taskmaster
>         This is the main engine for walking the dependency graph and
>         calling things to decide what does or doesn't need to be built.
>
> But it looks like it already needs a graph of nodes to process and
> I don't see where to get them.
>
>
> On Tue, May 19, 2015 at 10:51 AM, anatoly techtonik <techtonik at gmail.com>
> wrote:
> > No. I need a programmatic way to do this from Main.py
> > There is a fs object after SCons read all files, but I don't
> > understand how filesystem becomes a build graph.
> >
> >
> > On Tue, May 19, 2015 at 1:03 AM, William Blevins <wblevins001 at gmail.com>
> wrote:
> >> --tree=all plus --dry-run should work?
> >>
> >> On May 18, 2015 2:11 PM, "anatoly techtonik" <techtonik at gmail.com>
> wrote:
> >>>
> >>> Hi,
> >>>
> >>> I am trying to get SCons build graph after files
> >>> are read, but before the processing is started.
> >>>
> >>> I want it to be an alternative to build process
> >>> and interactive mode:
> >>>
> >>>
> https://bitbucket.org/scons/scons/src/95b566e4baf0253e1b36b8a9e00a97cd84d22566/src/engine/SCons/Script/Main.py?at=default#cl-1091
> >>>
> >>> How to start traversing nodes without building?
> >>> --
> >>> anatoly t.
> >>> _______________________________________________
> >>> Scons-dev mailing list
> >>> Scons-dev at scons.org
> >>> https://pairlist2.pair.net/mailman/listinfo/scons-dev
> >>
> >>
> >> _______________________________________________
> >> Scons-dev mailing list
> >> Scons-dev at scons.org
> >> https://pairlist2.pair.net/mailman/listinfo/scons-dev
> >>
> >
> >
> >
> > --
> > anatoly t.
>
>
>
> --
> anatoly t.
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20150519/67d19d1e/attachment.html>


More information about the Scons-dev mailing list