From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-07 03:16:47
On Friday 30 June 2006 19:53, Sohail Somani wrote:
> > -----Original Message-----
> > From: boost-build-bounces_at_[hidden]
> > [mailto:boost-build-bounces_at_[hidden]] On Behalf Of
> > Vladimir Prus
> > What's desired here is:
> > 1. Read file content when generator is running.
> > 2. Somehow cache this information so that we don't always
> > rescan the file.
> > I tend to believe that the most efficient method to do (1) is
> > to write a
> > Python module and call it from bjam. Unfortunately, I don't
> > have a ready
> > pointer to the code that calls Python module, but it must be
> > somewhere in
> > mailing list archive.
I'm sorry that documentation on this fairly important point is lacking. I've
just added to CVS a complete example of using Python module from Boost.Build,
it's example/python_module. For convenience, it's also attached.
Let me know if this is sufficient; if not, feel free to ask questions.
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk