Re: multiple modules from single c extension

2010-12-02 Thread Robert Kern
On 12/2/10 10:39 AM, Eric Frederich wrote: Can you explain how to do this with distutils then? Would I need a separate setup.py for SpamABC and SpamXYZ? How would I get them included in the parent module Spam? Please consult the distutils documentation. http://docs.python.org/distutils/index

Re: multiple modules from single c extension

2010-12-02 Thread Eric Frederich
Can you explain how to do this with distutils then? Would I need a separate setup.py for SpamABC and SpamXYZ? How would I get them included in the parent module Spam? Could you explain what you mean when you say "The Python import mechanism will be looking for an appropriately-named .pyd file for

Re: multiple modules from single c extension

2010-12-01 Thread Robert Kern
On 12/1/10 4:12 PM, Eric Frederich wrote: I have an extension to some C library that I created using the guide found here... http://docs.python.org/extending/extending.html I am starting to have A LOT of functions being wrapped. The library that I'm creating bindings for is organized into

multiple modules from single c extension

2010-12-01 Thread Eric Frederich
I have an extension to some C library that I created using the guide found here... http://docs.python.org/extending/extending.html I am starting to have A LOT of functions being wrapped. The library that I'm creating bindings for is organized into modules. In fact, all of their function call