Re: Re: Calling C++ Modules in Python

2011-03-22 Thread zxpatric
Dan, Recently I am trying out both the SWIG and BOOST, maybe Cython later. However, I didn't get lucky with the combination of the latest SWIGwin 2.0.2 and Python3.2. No matter I build _example.pyd, example.pyd or _example.dll, or example.dll, it just doesn't get imported as said in the

Re: Calling C++ Modules in Python

2011-03-22 Thread Stefan Behnel
zxpat...@gmail.com, 11.03.2011 23:16: On Mar 11, 2011 4:59pm, Dan Stromberg wrote: On Fri, Mar 11, 2011 at 1:15 PM, Patrick wrote: I saw in the Beginner document that •Is easily extended by adding new modules implemented in a compiled language such as C or C++. . While to my investigation, it

Re: Calling C++ Modules in Python

2011-03-11 Thread Benjamin Kaplan
On Mar 11, 2011 4:23 PM, Patrick zxpat...@gmail.com wrote: Hi, I saw in the Beginner document that •Is easily extended by adding new modules implemented in a compiled language such as C or C++. . While to my investigation, it seems not that easy or did I miss something? boost python (C++

Re: Calling C++ Modules in Python

2011-03-11 Thread Sophie Sperner
Hi Patrick, I'm using SWIG in my project. C++ code is wrapped and can be used in python as custom module. You should create a swig module.i file to describe headers upon which that module will be built. You should be certain about what you are going to use - boost library, swig or something

Re: Calling C++ Modules in Python

2011-03-11 Thread Dan Stromberg
On Fri, Mar 11, 2011 at 1:15 PM, Patrick zxpat...@gmail.com wrote: Hi, I saw in the Beginner document that •Is easily extended by adding new modules implemented in a compiled language such as C or C++. . While to my investigation, it seems not that easy or did I miss something? boost

Re: Calling C++ Modules in Python

2011-03-11 Thread Patrick
Thanks Sophie for the information. Yes, right now I am not certain about what I am going to use for I was hoping for a non-intrusive way to expose existing C++ libraries to python. However, both solutions (BOOST, SWIG) listed here require the recompilation of libraries?! It is ok for small

Re: Re: Calling C++ Modules in Python

2011-03-11 Thread zxpatric
Dan, Thanks for the info. Really I was hoping for a non-intrusive way to expose existing C++ libraries to python. However, both solutions (BOOST, SWIG) listed here require the recompilation of libraries?! Seems Cython is doing the similar way? It is ok for small applications but will be

Re: Re: Calling C++ Modules in Python

2011-03-11 Thread Dan Stromberg
I've not tried Boost, but I don't think SWIG or Cython require modified libraries. You just compile your wrapper, and then import it. On Fri, Mar 11, 2011 at 2:16 PM, zxpat...@gmail.com wrote: Dan, Thanks for the info. Really I was hoping for a non-intrusive way to expose existing C++

Re: Calling C++ Modules in Python

2011-03-11 Thread Terry Reedy
On 3/11/2011 4:15 PM, Patrick wrote: Hi, I saw in the Beginner document that •Is easily extended by adding new modules implemented in a compiled language such as C or C++. . While to my investigation, it seems not that easy or did I miss something? boost python (C++ libraries need to be