Boost logo

Boost-Build :

Subject: Re: [Boost-build] generate.jam ->
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-09-11 15:03:03

Hi Aaron,

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
> problem.
> In the original implementation, there is a call to "" on line 57 of
> generate.jam
> <>. 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, david.abrahams at, gregod at, cpdaniel at, john at