logo       

Re: Python and Submodules: msg#00151

programming.swig

Subject: Re: Python and Submodules

Jeremy Noetzelman wrote:
I have a large C++ library which is fairly monolithic. I would like
to wrap it and present it to python with submodules. The
documentation on the SWIG website doesn't seem to address this
scenario.

I'd like to have something in the long run that lets me break up the
classes in this library into distinct submodules. Can I do this with
SWIG?


Yes. I do it with wxPython, but nothing special is needed from SWIG. Just create create a .i files for each submodule that you want and then deploy them into a Python pacakge directory. You'll need to ensure that there is only one copy of the SWIG runtime that is shared between all the related modules.

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

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise