Boost logo

Boost-Build :

Subject: [Boost-build] generate.jam -> generate.py
From: aaron_at_[hidden]
Date: 2015-09-10 13:46:48


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 "indirect.call" 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'm not sure what else could be done.

Thoughts?

Aaron

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