ExtGen - a Python Extension module Generation tool - something very new and fresh
Hi, I have started to work on an ExtGen package that is a high-level tool for constructing Python extension modules. I'll need it in the G3 F2PY project but ExtGen might have more general interest and usage, hence so early announcement. For more information and hello example, see http://www.scipy.org/ExtGen Enjoy, Pearu
2007/8/4, Pearu Peterson <pearu@cens.ioc.ee>:
I have started to work on an ExtGen package that is a high-level tool for constructing Python extension modules. I'll need it in the G3 F2PY project but ExtGen might have more general interest and usage, hence so early announcement.
If you somehow can magic up a way to generate modules written in C (for the standard CPython), in Java (for Jython) and in RPython (for PyPy) from the same source, that would be really awsome and incredibily useful. But I admit that I have no idea about how to do it (if it's possible at all). BTW, if you don't know it yet you may want to check out Pyrex (<http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/>) which does something very similar, but in a different way. -- Lino Mastrodomenico E-mail: l.mastrodomenico@gmail.com
On Sun, August 5, 2007 12:54 am, Lino Mastrodomenico wrote:
BTW, if you don't know it yet you may want to check out Pyrex (<http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/>) which does something very similar, but in a different way.
Yes, I know about Pyrex. Pyrex defines a Python-like language from which extension modules are generated but for generating wrapper functions for Fortran or C programs, I'll need better control how the extension modules are created. This includes dealing with converters between Python-C-Fortran types, for instance. I would consider ExtGen as a tool for programs that need to generate extension modules. Pearu
participants (2)
-
Lino Mastrodomenico -
Pearu Peterson