[Ilugc] re: building python extension
sudharsh at gmail.com
Thu May 21 11:15:24 IST 2009
On Thursday 21 May 2009 02:10:09 Ravi Jaya wrote:
> I am trying to build Python extension using C in windows and Linux, can
> someone please provide me an a pointer for the same.
> I am tried to in windows, it shows some error message which i had pasted
> it here http://pastebin.com/m370edfc
From the error messages, it looks like you don't have the headers installed.
Try installing the development packages for libc6.
As with the python extensions, use Cython or Pyrex to write extensions
since using the CPython API involves a lot of boring boiler-plate code (also
gets complicated in a while). If the extension is binding a simple library,
you can use ctypes module provided by the python standard library.
I personally found Cython to be pretty easy to use.
Blog : http://www.sudharsh.wordpress.com
IRC : Sup3rkiddo @ Freenode, Gimpnet
More information about the ilugc