While the fix does work for the barebones SWIG repository example, the same applied to RAPI (a more complex use case) fails with the exact same segfault/backtrace:


On Thu, Aug 21, 2014 at 6:19 PM, brainstorm <braincode@gmail.com> wrote:
Thanks David! That was it!

On Tue, Aug 19, 2014 at 7:38 PM, David Froger <david.froger@inria.fr> wrote:
Quoting brainstorm (2014-08-19 16:55:28)
> That sounds much more like the case... how can I fix/workaround it in the
> Makefile?:
> https://github.com/brainstorm/swig-python-skel/commit/9c28128c

Hi Roman,

I modified the Makefile like this, which works for me:


Note that distutils works very well to build Python extension, and prevents
this kind of problems: