Building libraries that my extensions can use. [distutils]

S

sudharsh

Hello all,
I want to create a shared object that my extension modules can
dynamically load with intact symbols across modules. Searching the
documentation lead me to distutils.ccompiler. Quite frankly
comprehending this has been difficult for the newbie in me. I did
google (..and krugle) for setup scripts that use this but they seem to
be designed for medium to large projects. Mine is quite small to
modify the ccompiler class.

o (foo.so)
/ \
/ \
/ \
/ \
bar.c baz.c

So in my setup script i would like to have 'foo' under the libraries
list in setup(). Is there a dummy' guide for this, or atleast a pretty
basic example which I might pick upon given the simplicity.

I did try this

libraries=[("foo", {'sources'=src_dir, 'include_dirs'=dir, 'libraries'
= some_external_thingy})]

And it seems to build fine but I find that symbols in the object file
are not visible to the others..

Am I in a state of confusion or what...=(, Anyone please guide me out
of this by pointing me to a trivial example..

Thanks,
Sudharshan S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top