Commits

Armin Rigo committed 73277d7

Yay, it works: a minimal example of setup.py to install a Python module
together with the custom C extension module generated by CFFI.

  • Participants
  • Parent commits 006f22f

Comments (0)

Files changed (1)

File demo/setup.py

+#
+# 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()])