2
This file is from pyzmq-static by Brandon Craig-Rhodes,
3
and used under the BSD license
5
py3compat from http://wiki.python.org/moin/PortingExtensionModulesToPy3k
7
Provide the init function that Python expects
8
when we compile libzmq by pretending it is a Python extension.
12
static PyMethodDef Methods[] = {
16
#if PY_MAJOR_VERSION >= 3
18
static struct PyModuleDef moduledef = {
19
PyModuleDef_HEAD_INIT,
33
PyObject *module = PyModule_Create(&moduledef);
42
(void) Py_InitModule("libzmq", Methods);