Log Message: |
Use wxPython.h by default but provide a workaround when it isn't
available.
* setup.py (wxproj_extension): New variable. Assign the Extension
instance for Lib.wxproj to this variable instead of putting it
directly into the listso that it can be accessed by other code
later.
(thuban_build_ext.user_options): Added boolean option
--use-wx-python-swig-hack.
(thuban_build_ext.initialize_options): Initialize the new option
to False.
(thuban_build_ext.finalize_options): If the new option was given,
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
(thuban_build_ext): Update the doc-string
* libraries/thuban/wxproj.cpp: Normally we use
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is
defined, use swigPtrConvertHack.h instead.
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was
copied over from wxPython.h.
(decode_pointer_new): New. Equivalent of decode_pointer for
wxPython 2.5.
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
|