Subject: Re: [Boost-build] generate.jam -> generate.py
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-09-11 15:03:03
On 10-Sep-15 8:46 PM, aaron_at_[hidden] wrote:
> Hello all,
> I'm working on porting the generate module to Python. I have come across a
> problem during the port and I would like some guidance in order to solve the
> In the original implementation, there is a call to "indirect.call" on line 57 of
> <https://github.com/boostorg/build/blob/develop/src/tools/generate.jam#L57>. The
> problem with this in the Python port is that the second argument is an instance
> of ProjectTarget and cannot be directly passed to the Jam engine.
> My current use only requires calling a function defined in Python, so one
> possible (probably also the easiest) solution is to force <generating-rule>
> properties to only point at importable Python functions.
I think that's the right solution. After all, Python port aims to make it easier
to write non-trivial build code, so permitting Jam code to manipulate ProjectTarget
instances would be a bit backward.
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