Boost logo

Boost-Build :

Subject: [Boost-build] python extensions using bjam
From: Avi Bahra (avibahra_at_[hidden])
Date: 2011-03-09 09:23:57

I am currently using bjam to build my python extension:
Following the advice in the tutorial my boost python
extension starts with an '_' . i.e

local rule run-test ( test-name : sources + )
    testing.make-test run-pyd : $(sources) : : $(test-name) ;
# Declare test targets
run-test TestClient : _ecflow [ glob test/ ] ;

And the code in starts with:
from _ecflow import *

I am now writing a on-line tutorial using sphinx.
and where I want to use bjam to compile the
python examples used in the tutorial.
However the installed python extension is different: i.e

import ecflow

This follows the advice set in the boost python tutorial.

However this means my tutorial python will not compile.
In the jam file I have:

# declare test for on-line tutorial examples
run-test t1 : _ecflow [ glob
../Doc/tutorial/content/getting_started/src/ ]

This obviously fails. Is there any way of building my tutorial python examples
using 'import ecflow' instead of 'import _ecflow' ?

   Best regards,

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