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 : : @in2out ;
actions in2out
    $(py_interp) $(<) $(>)

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

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at