Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r650:73277d7d943f
Date: 2012-07-15 14:57 +0200
http://bitbucket.org/cffi/cffi/changeset/73277d7d943f/

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

diff --git a/demo/setup.py b/demo/setup.py
new file mode 100644
--- /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()])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to