Commit a41df6c8 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

lalburst: remove six.h

parent 7192f739
......@@ -6,8 +6,6 @@ include $(top_srcdir)/gnuscripts/lalsuite_vcs_info.am
vcs_info_sources = git_version.py
noinst_HEADERS = six.h
if HAVE_PYTHON
pymoduledir = $(pkgpythondir)
......
......@@ -46,7 +46,6 @@
#include <gsl/gsl_errno.h>
#include <lal/cs_cosmo.h>
#include <lal/cs_lambda_cosmo.h>
#include "six.h"
#define CUSPS_PER_LOOP 1.0 /* c */
#define LOOP_RAD_POWER 50.0 /* Gamma */
......@@ -395,20 +394,31 @@ static PyMethodDef cs_gammaMethods[] = {
{NULL, NULL, 0, NULL}
};
static PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
"cs_gamma", NULL, -1, cs_gammaMethods,
NULL, NULL, NULL, NULL
};
//They Python module initialization function.
PyMODINIT_FUNC PyInit_cs_gamma(void); /* silence no-previous-prototype warning */
PyMODINIT_FUNC
PyInit_cs_gamma(void)
//Then Python module initialization function.
#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initcs_gamma(void); /* silence -Wmissing-prototypes */
PyMODINIT_FUNC initcs_gamma(void)
#else
PyMODINIT_FUNC PyInit_cs_gamma(void); /* silence -Wmissing-prototypes */
PyMODINIT_FUNC PyInit_cs_gamma(void)
#endif
{
import_array();
return PyModule_Create(&moduledef);
}
#if PY_MAJOR_VERSION < 3
PyObject *module = Py_InitModule3("cs_gamma", cs_gammaMethods, NULL);
#else
static PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
"cs_gamma", NULL, -1, cs_gammaMethods,
NULL, NULL, NULL, NULL
};
PyObject *module = PyModule_Create(&moduledef);
#endif
import_array();
SIX_COMPAT_MODULE(cs_gamma)
#if PY_MAJOR_VERSION < 3
return;
#else
return module;
#endif
}
../../../gnuscripts/six.h
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment