I have written a python extension in C (using cython, actually, though that's beside the point) which uses the AudioUnit framework in Mac OSX. The module builds correctly, but when I try to import it from the python command line, I get the following error:
ImportError: dlopen(myproject/audiomodule.so, 2): Symbol not found: _AudioUnitSetProperty
Referenced from: /Views/python/lib/python3.1/site-packages/myproject/audiomodule.so
Expected in: dynamic lookup
How do I tell python that it needs to use the AudioUnit framework when loading this module?