python-extensions

Can't call method in Python C extension

I'm working on making my first Python C extension, which defines a few functions and custom types. The strange thing is that the custom types are working, but not the regular functions. The top-level MyModule.c file looks like this: static PyMethodDef MyModule_methods[] = { {"doStuff", MyModule_doStuff, METH_VARARGS, ""}, {NUL...

Python Extension Can't Use library_dirs

WHen specifying library_dirs in a Python distutils.core.Extension I get this error when trying to build: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py:263: UserWarning: Unknown distribution option: 'library_dirs' warnings.warn(msg) Why is this? I am using Python 2.5 on Mac OS X. ...