automatically generating file dependency information frompython tools

John Roth newsgroups at jhrothjr.com
Sat Apr 10 10:13:24 EDT 2004


"Moosebumps" <moosebumps at moosebumps.com> wrote in message
news:vnHdc.50052$rz3.17101 at newssvr25.news.prodigy.com...
> >
> > In answer to the question you /almost/ asked:
> >
> > http://www.google.com/search?q=python+make+replacement
> >
>
> That is definitely of interest to me, but I would want to go one step
> further and automatically generate the dependency info.  I haven't looked
> specifically at these make replacements, but I would assume you have to
use
> a makefile or specify dependency info in some form like a text file.  What
I
> am looking for is a way to automatically generate it from the source code
of
> the individual tools that the make program will run, or by running the
tools
> in some special mode where they just spit out which files they will
> read/write.

SCons is what you want, then. It's got a scanner built in that can
be subclassed to scan anything to pull out dependency information
on the fly. Converting a build monstrosity to SCons isn't exactly
simple, but it's a lot simpler than any of the alternatives I can think
of.

John Roth
>
> MB
>
>





More information about the Python-list mailing list