summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo/setup.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/demo/setup.py b/demo/setup.py
new file mode 100644
index 0000000..5d6ddcf
--- /dev/null
+++ b/demo/setup.py
@@ -0,0 +1,11 @@
+#
+# A minimal example of setup.py to install a Python module
+# together with the custom C extension module generated by CFFI.
+#
+
+from distutils.core import setup
+from distutils.extension import Extension
+import bsdopendirtype
+
+setup(py_modules=['bsdopendirtype'],
+ ext_modules=[bsdopendirtype.ffi.verifier.get_extension()])