Boost logo

Boost-Build :

From: Johnny Graettinger (johnny531_at_[hidden])
Date: 2008-05-30 15:49:35


Is there a clean way to extract the configured interpreter, libraries, etc
from the python module?

In particular, I'd like to run some python scripts as a later stage of a
build process to generate additional targets. Supposing that Jamroot may
have been configured for some special variant of python, it'd be handy to
extract the correct interpreter to use, eg:

Way up in Jamroot:

using python : <some version> : <some python root> ;

Way down in a Jamfile:

local py_interp = [ modules.peek python : interpreter ] ;

make file.out : file.in : @in2out ;
actions in2out
{
    $(py_interp) in2out.py $(<) $(>)
}

Is there a way to do this? Am I going about it the wrong way altogether?
Thanks,
John



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