Re: [C++-sig] sharing code between different python extensions

2014-10-23 Thread Wintersberger, Eugen
Hi Stefan > Python extension modules may not depend on each other in that way. > (Arguably that is a Good Thing, as it avoids possible ABI compatibility > issues.) > What I suggest you do is either refactor the code such that your > extensions 'a' and 'b' both link to a shared library 'c' which

Re: [C++-sig] sharing code between different python extensions

2014-10-23 Thread Wintersberger, Eugen
Hi On Thu, 2014-10-23 at 08:11 -0400, Nat Goodspeed wrote: > On Oct 22, 2014, at 8:08 AM, "Wintersberger, Eugen" > wrote: > > > I have a little problem with two Python extensions (C++ with > > boost::python) where share code. > > > > I have to Python extensions ('a' and 'b') each of them exp

[C++-sig] Exposing simple polymorphism with boost python

2014-10-23 Thread Erik Türke
Hi Python-Experts :-) i am starting to get really frustrated trying to expose a simple C++ polymorphism to python with boost::python. I do have the following structure in C++: struct Base { int typeID; }; struct Derived : public Base { int derivedProperty; }

Re: [C++-sig] sharing code between different python extensions

2014-10-23 Thread Stefan Seefeld
On 22/10/14 08:08 AM, Wintersberger, Eugen wrote: > Hi there > I have a little problem with two Python extensions (C++ with > boost::python) where share code. An example of what I am trying to do is > attached to this mail so I will refer to the code in the tarball to > explain the problem. > >

Re: [C++-sig] sharing code between different python extensions

2014-10-23 Thread Nat Goodspeed
On Oct 22, 2014, at 8:08 AM, "Wintersberger, Eugen" wrote: > I have a little problem with two Python extensions (C++ with > boost::python) where share code. > > I have to Python extensions ('a' and 'b') each of them exporting two > functions. What I want is to use a function exported by 'a' i

[C++-sig] sharing code between different python extensions

2014-10-23 Thread Wintersberger, Eugen
Hi there I have a little problem with two Python extensions (C++ with boost::python) where share code. An example of what I am trying to do is attached to this mail so I will refer to the code in the tarball to explain the problem. I have to Python extensions ('a' and 'b') each of them exportin