T
Tim Arnold
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.
thanks,
--Tim Arnold
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.
thanks,
--Tim Arnold