gammapy/ringtophat — Issue #1: Use SWIG or cython or ? for  the python bindings?
Author: cdeil
Created: 2012-02-24 14:13:46+00:00
State: open

I have very little experience with python bindings, but I think we should try SWIG [1] and cython [2] and see which is simpler / faster / nicer.

Here [3] is an example of how to write a SWIG wrapper and here [4] is some info on how to build it using only a simple setup.py script. I haven't found a simple example project where we can look for guidance.

For cython I think pandas [3] might be a nice example to learn how to do it.

[1] http://www.swig.org/
[2] http://cython.org/
[3] http://www.swig.org/tutorial.html
[4] http://docs.python.org/distutils/setupscript.html#extension-source-files
[5] https://github.com/pydata/pandas