Darren Dale wrote:

> So let me see if I understood you: Cython is not currently designed to
> let you build a module up from several submodule sources, be they C or
> Cython, because it will not expose the symbols in those submodules.

Symbol visibility isn't the problem (that can be fixed with
public/extern declarations). The problem is that Pyrex/Cython
compiles each .pyx file into a module with its own module
init function, tables of strings, etc. etc. It's not designed
to merge those things together from multiple separately-compiled
.pyx files.

There's no problem with linking multiple separately-compiled C
sources with a single .pyx.

It's also possible for a number of modules, each one generated
from a .pyx, to import extension types and C functions from
each other at run time, so you can divide the functionality of
a package across .pyx sources that way.

You can also use the 'include' statement to glue a number of
source files together into a single module, but it will all
be compiled together, which may take a while.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to