Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-15 Thread Ben Fitzpatrick
>I'm sorry to say that I don't really understand the concept of making the >Python portion only an interface to the >underlying C++ code. Please could you >explain what that means? David, Sorry, I must not have communicated this well. I'll try again. It depends on how your code works, but th

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-15 Thread Neal Becker
Does pybindgen interoperate with numpy? That would be required for me to use it. Ben Fitzpatrick wrote: > David, > > I'm still a newbie on this list myself, but I will tell you that for the > larger project which we were attempting to wrap, we had excellent luck > with Gustavo Carniero's Pybin

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-15 Thread David Aldrich
Hi Ben Thanks very much for your reply. Sorry that my response has been slow but I have been trying to digest yours. I have also taken a detour to investigate CMake. >As to how to make your functionality available with a Python >extension - I'm not sure exactly what kind of app you have, >but

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-07 Thread Ben Fitzpatrick
David, I'm still a newbie on this list myself, but I will tell you that for the larger project which we were attempting to wrap, we had excellent luck with Gustavo Carniero's Pybindgen project. We found it to be much simpler to work with than boost.python and py++, and also it compiled much fas

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-06 Thread Benoit Leveau
David Aldrich wrote: Hi Ravi Thanks for your reply. Yes. PyOGRE or cctbx are excellent exmples of larger projects which use boost.python. You may want to use py++ to automate binding generation to save yourself quite some time. Ok, I will look at py++. py++ is very good for the goal you hav

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-06 Thread David Aldrich
Hi Ravi Thanks for your reply. > Yes. PyOGRE or cctbx are excellent exmples of larger projects which use > boost.python. You may want to use py++ to automate binding generation to > save yourself quite some time. Ok, I will look at py++. > No. The python modules can be compiled using regular ma

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-06 Thread Ravi
On Monday 06 September 2010 08:15:39 David Aldrich wrote: > I have only looked at the boost.python tutorial that demonstrates a 'Hello > world' Python extension. For our project we would be dealing with > something very much bigger, with many classes, singleton classes and > (possibly) global data