[wx-dev] wxGTK flexibility and wxPython

Robin Dunn robin at alldunn.com
Tue Jul 4 20:07:22 PDT 2006


Gilles Dartiguelongue wrote:
> Hello list,
> 
> I'm currently trying to remove tiff support from my system and I came
> across wxGTK and wxPython depending on it. So I had a look at build
> options and came up with some options for wxGTK, which is nice.
> 
> But then, trying to compile wxPython without tiff support in wxGTK fails
> (in C++ wrapper). I don't know much about python so I may have missed
> some option of setup.py. I didn't find any way of compiling wxPython
> without tiff support.
> 
> I think the same should apply for expat, png, jpeg and zlib support, so
> I
> would be grateful for any input.
> 

wxPython assumes that it's being built with a fairly full implementation 
of wxWidgets, and so only a few things are conditionalized at 
compile-time.  If you don't mind getting your hands dirty though it's 
not too hard to #ifdef things out that you don't need.  Just edit the .i 
files and then rebuild using the flags that will cause SWIG to be run. 
You'll also need a patched version of SWIG to generate the code 
correctly.  See the wxPython build docs for details.

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





More information about the wx-dev mailing list