[Numpy-discussion] Cython distutils

Robert Bradshaw robertwb@math.washington....
Tue Sep 14 00:19:44 CDT 2010


I've pushed an implementation of
http://wiki.cython.org/enhancements/distutils_preprocessing . This
allows one do write, e.g.

    module_list = cythonize("*.pyx")

in your setup.py, and it handle the .pyx dependencies (including
transitive dependence of libraries) and does all the .pyx -> .c
translation. (In particular, this does away with the need for a
customized build_ext extension, which is especially nice for projects
their own.  There are also mechanisms for specifying more build
information in the source file itself--see
http://hg.cython.org/cython-devel/file/tip/tests/build/inline_distutils.srctree
for an example. This will also be useful for non-distutils setups
(e.g. pyximport and inline code).

Try it out and let me know what you think in terms of features and API.

- Robert


More information about the NumPy-Discussion mailing list