On Tue, Apr 9, 2013 at 3:32 PM, mark florisson <markflorisso...@gmail.com> wrote: > On 9 April 2013 14:55, Nikita Nemkin <nik...@nemkin.ru> wrote: >> One alternative for code reuse in large Cython projects >> could be packaging multiple modules into one shared library. > > We have 'include'! :) Seriously though, that wouldn't work well with the > import mechanism, and probably not for C compile time either.
You can link multiple .c files into a single shared library. This is off-topic again, but I've often thought in the past it would be nice if one could easily build a single module out of a combination of multiple .c and .pyx files. Specifically it'd be nice to be able to port bits of numpy/core/multiarray.so to Cython, but it's already 50,000 lines of C code spread out over 38 files and defining a single module; no real way to move just part of it to Cython so far as I know... -n _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel