[Distutils] Compilation and eggification of swig code

Phillip J. Eby pje at telecommunity.com
Fri Dec 15 01:01:56 CET 2006


At 05:49 PM 12/14/2006 -0400, David Pratt wrote:
>Hi. I'd like to produce an egg by compiling swig code for a particular
>platform. Can someone advise a blueprint for this. Many thanks.

See http://python.org/doc/2.4.1/dist/dist.html and 
http://python.org/doc/2.4.1/dist/describing-extensions.html

especially section 2.3.2, which notes that you can use .i files as 
Extension() sources.  Add the necessary information to your setup.py and 
run bdist_egg on the appropriate platform(s) to create the egg(s) you want.



More information about the Distutils-SIG mailing list