[#550] --use-wx-python-swig-hack relies on SWIG internals, and should be made obsolete by lobbing to include wxPython.h in the distributions

2007-12-01 00:09
Submitted by:
Bernhard Reiter (bernhard)
Assigned to:
Nobody (None)
--use-wx-python-swig-hack relies on SWIG internals, and should be made obsolete by lobbing to include wxPython.h in the distributions

Detailed description
setup.py rev 2788 has:


For performance reasons, Thuban access wxPython objects at the
C++ level so that it can directly call wxWidgets code from C++.
The normal and preferred way to do that is to use the API
defined in wxPython.h. Unfortunately, this header file is not
distributed with binary packages of wxPython on some platforms.
By using the --use-wx-python-swig-hack option you can activate a
way to access the C++ objects without wxPython.h. This relies
on internals of SWIG, so it might change with future wxPython
versions. Therefore, only use this option if the normal way
doesn't work for you.

Debian today (20071201) still does not ship the packages,
there is a discussion at:


Which also claims that Robin Dunn, the maintainer of wxPython
did not want to fix it in the upstream package.
Message  ↓
Date: 2009-07-10 07:37
Sender: Bernhard Reiter

No, we cannot really resolve it, because ideally it would be fixed in upstream and then in all GNU/Linux distributions.
But it is good to know that at least we've got it fixed in Debian. :)

Date: 2009-07-10 07:19
Sender: Didrik Pinte

With wx2.8 on Debian, I do not have to use this anymore.

If we change the requirements to 2.8 we could potentially drop it and close the ticket.

Date: 2009-02-17 15:04
Sender: Didrik Pinte

The debian bug has been closed : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326440. We should test it.

Date: 2007-12-01 00:27
Sender: Bernhard Reiter

I have send a comment to the Debian bug explaining
that Thuban indeed would want to use wxPython.h.

Here is the end of the discussion:
where the following report is mentioned:

It seems that the Debian maintainer refuses to do a small
solution and the more general solution is blocked by Robin Dunn.

No attached documents

Field Old Value Date By
priority32007-12-01 00:27Bernhard Reiter