
pywxsvg ar python wrappers that allow wxsvg to be used from wxPython apps.

If you plan to regenerate wrapper with swig you have to compile swig by yourself and apply patches provided in wxPython sources (tested with swig 1.3.27, patches from wxPython 2.6.3)
Furthermore, you will have to change some lines in the wxsvg_wrap.cpp file.
REPLACE line 1231:
    char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
BY
		const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
		
REPLACE line 18707:
    char *c = methods[i].ml_doc;
BY
		const char *c = methods[i].ml_doc;

REPLACE line 18711:
    char *name = c + 10;
BY
		const char *name = c + 10;
   	

pywxsvg have been tested with wxWidgets and wxPython 2.6.3 on GTK 2, and using libart as a renderer backend.


#########    GENTOO    ##########
Here are the command lines I use on gentoo (wx is multi-version...) to compile and install :
 
./configure --with-wx-config=/usr/bin/wx-config-2.6
make
sudo make install

cd pywxsvg
# USE_SWIG=1 is optional
python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config-2.6 SWIG=/opt/bin/swig build
sudo python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config-2.6 SWIG=/opt/bin/swig install


#########    UBUNTU    ##########
For ubuntu distribution, use theses commands lines :

./configure --with-wx-config=/usr/bin/wx-config
make
sudo make install

cd pywxsvg
# USE_SWIG=1 is optional
python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config SWIG=/opt/bin/swig build
sudo python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config SWIG=/opt/bin/swig install
