summaryrefslogtreecommitdiff
path: root/buildutils/templates
diff options
context:
space:
mode:
Diffstat (limited to 'buildutils/templates')
-rw-r--r--buildutils/templates/constant_enums.pxi3
-rw-r--r--buildutils/templates/constants.pxi12
-rw-r--r--buildutils/templates/zmq_constants.h6
3 files changed, 21 insertions, 0 deletions
diff --git a/buildutils/templates/constant_enums.pxi b/buildutils/templates/constant_enums.pxi
new file mode 100644
index 0000000..6039548
--- /dev/null
+++ b/buildutils/templates/constant_enums.pxi
@@ -0,0 +1,3 @@
+cdef extern from "zmq.h" nogil:
+
+ {ZMQ_ENUMS}
diff --git a/buildutils/templates/constants.pxi b/buildutils/templates/constants.pxi
new file mode 100644
index 0000000..042a6e8
--- /dev/null
+++ b/buildutils/templates/constants.pxi
@@ -0,0 +1,12 @@
+#-----------------------------------------------------------------------------
+# Python module level constants
+#-----------------------------------------------------------------------------
+
+{ASSIGNMENTS}
+
+#-----------------------------------------------------------------------------
+# Symbols to export
+#-----------------------------------------------------------------------------
+__all__ = [
+{ALL}
+]
diff --git a/buildutils/templates/zmq_constants.h b/buildutils/templates/zmq_constants.h
new file mode 100644
index 0000000..6855331
--- /dev/null
+++ b/buildutils/templates/zmq_constants.h
@@ -0,0 +1,6 @@
+#ifndef _PYZMQ_CONSTANT_DEFS
+#define _PYZMQ_CONSTANT_DEFS
+
+{ZMQ_IFNDEFS}
+
+#endif // ifndef _PYZMQ_CONSTANT_DEFS