Re: [pygccxml-development] demand driven instantiation
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-07-12 17:47:35
|
On 7/12/06, Neal Becker <ndb...@gm...> wrote: > One of the challenges of integrating algorithms written in c++ with python > wrappers is that we want to write generic c++ code. It is not obvious how to > support compile-time polymorphism in this framework. > > I wonder is pyplusplus can help here? Maybe a python program interface to > call pyplusplus to generate a specific instantiation wrapper, call the > compiler, and load the module? This will work. pyplusplus has all functionality to do it. You can take a look on pyplusplus unittests. This is almost exactly what you want. There is one big minus - such solution will complicate product delivery. 0. different os and environments 1. good compiler 2. boost.python 3. gccxml 4. pygccxml + pyplusplus 5. scons or other build system, or you will have to generate makefiles 6. your product It is going to be nightmare :-). May be you should study Python bindings for boost.graph library. Or to create all possible or very useful template instantiations and to export them? -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |