Swig extensions with 2.6.3.2 & swig 1.3.29

Have you tried with the swig-1.3.27 plus the Robin patches. I think
Robin/wxPython is currently using swig-1.3.27.

Quoting the README.txt in wxPython-src-2.6.3.2/wxPython/SWIG/:
"""
wxPython currently uses the 1.3.27 version of SWIG, which you can get
from SWIG download | SourceForge.net, plus the patch(es) in
this directory. Download the SWIG sources, apply the patch(es) here
and then build as normal. I have also have made available a tarball
containing the patched SWIG sources, plus a win32 binary, located
here:

        http://starship.python.net/crew/robind/wxPython/tools/
"""

Ricardo

···

On Mon, 2006-04-10 at 20:32 +0000, Jim Carroll wrote:

Hi, I've got some wxPython extensions that have been working in the past... I
just upgraded to 2.6.3.2, and got the development files that correspond, and
downloaded swig 1.3.29, and patched using the patches that are for 1.3.29 in CVS
head of wxWindows....

Have you tried with the swig-1.3.27 plus the Robin patches. I think
Robin/wxPython is currently using swig-1.3.27.

Oops! I can't belive I didn't check this. I was getting ahead of myself just
because the 1.3.29 patch was there, I was hoping it would be the latest and
greatest.

Using the 1.3.27... my app works again! Thanks Robin for making the windows
exe available, I spent an hour or two figuring out MSYS last week just to
compile SWIG. This is almost easy.

-Jim

Jim Carroll wrote:

Have you tried with the swig-1.3.27 plus the Robin patches. I think
Robin/wxPython is currently using swig-1.3.27.

Oops! I can't belive I didn't check this. I was getting ahead of myself just
because the 1.3.29 patch was there, I was hoping it would be the latest and
greatest.

Using the 1.3.27... my app works again!

Yep. I left the 2.6 branch using 1.3.27 to minimize the changes needed in a stable release series to get wxPython to work. Starting with 1.3.28 there were some big changes in the generated code and a bunch of changes were needed in wxPython to adapt to some of those changes. So I am only using .29 in the 2.7 branch since big changes will be expected in that release series.

IIRC I also had the TypeError problem you saw, but I don't recall right now what changes I needed to make to fix that. But I expect that when you are ready to move to 2.7 and SWIG 1.3.29 then you won't have to make many changes because most of what I did was in macros, global %feature settings and command-line options and so on.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!