how to setup simple build for simple pyrex/c module
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/
At 05:10 PM 8/8/2006 -0400, Bob Harris wrote:
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?
This might be a good place to start: http://ldots.org/pyrex-guide/2-compiling.html#distutils
participants (2)
-
Bob Harris
-
Phillip J. Eby