libraries with distutils

2005-05-11 Thread Glenn Pierce
ource/'], library_dirs=['../../Dist/'], libraries = ['FreeImage'], sources = ['freeimagemodule.c']) setup (name = 'freeimage', version = '1.0', author = 'Glenn Pierce',

Wrapping c functions

2005-05-01 Thread Glenn Pierce
Hi I have been trying to wrap a c library called FreeImage for python and am having trouble with a couple of functions. One function is FreeImage_Load which takes parameters (enum, const char*, int) I have wrapped the function with the following code static PyObject * freeimage_load(PyObject *sel