blob: e26875736d234a148114d816e79dc5f69ab9ef20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* -*- c -*- */
/*
* This is a dummy module whose purpose is to get distutils to generate the
* configuration files before the libraries are made.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define NO_IMPORT_ARRAY
#include <Python.h>
#include <npy_pycompat.h>
static struct PyMethodDef methods[] = {
{NULL, NULL, 0, NULL}
};
static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
"dummy",
NULL,
-1,
methods,
NULL,
NULL,
NULL,
NULL
};
/* Initialization function for the module */
PyMODINIT_FUNC PyInit__dummy(void) {
PyObject *m;
m = PyModule_Create(&moduledef);
if (!m) {
return NULL;
}
return m;
}
|