using scons as a library
miki.tebeka at gmail.com
Sat Feb 9 03:57:27 CET 2008
> Hi, I've been reading up on the SCons build tool. It's intended to
> work by the end-user calling 'scons' on a buildscript. However, I'd
> like to use it from my own python project as an imported module, and
> have my already-written classes use the Scons objects to take actions
> without an external script.
> The reason for this somewhat odd question is that I don't want SCons
> to build the project--the project itself builds documentation (pdf/
> html/xml) from LaTeX sources--my classes handle some complex
> configuration issues, source parsing, actual rendering, etc. What I
> would gain by using SCons is to let my code hand-off tasks to SCons
> like making and cleaning directories, creating zip files, interacting
> with CVS, etc.
> Has anyone tried this before? It seems doable, but if someone has an
> example that would help to shorten my learning curve.
Just have a look at the "scons" script:
Looks simple enough.
Miki <miki.tebeka at gmail.com>
More information about the Python-list