19 Nov
2008
19 Nov
'08
11:25 a.m.
On Wed, Nov 19, 2008 at 12:00 PM, Philipp Heuser philipp@achtziger.dewrote:
where within these setup.py files do I have to mention the ./ext_foo.a ? When I do place it in the sources-tag, setup procedure complains that it doesn't know any .a files... if I don't mention it explicitly, just giving the include_dirs, compilation works fine, but when importing from python 'import wrap' I do get the message: Symbol not found: _foo
The "sources" parameter lists source files that need to be compiled. Your ext_foo.a doesn't need to be compiled; it just needs to be linked. Try adding a parameter link_objects=['ext_foo.a'] to the Extension(...) definition.
HTH,
-- Carsten Haese http://informixdb.sourceforge.net