[Distutils] how to setup simple build for simple pyrex/c module

Bob Harris me13013 at hotmail.com
Tue Aug 8 23:10:10 CEST 2006


Howdy,

I am trying to provide myself an interface to a C module from python, using 
pyrex as the glue.  I think I have all the C and pyrex correct, but am 
trying to figure out how to build it (on Mac OSX with Python 2.4 and gcc 
3.3).  My web search suggests that disutils is the proper way to build such 
a thing, even though I don't intend to distribute it to anyone but myself.  
But I am having a hard time sorting through all the documentation on 
distutils, attempting to separate the irrelevent from relevent.

I have a directory containing my myfunc.c, myfunc.h and c_myfunc.pyx.  What 
else do I need to do so that I can use distutils to build this and then 
access the functions in this module from another python program?

Thanks for any help.
Bob H

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the Distutils-SIG mailing list