[pypy-commit] cffi default: Yay, it works: a minimal example of setup.py to install a Python module
arigo
noreply at buildbot.pypy.org
Sun Jul 15 14:57:15 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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()])
More information about the pypy-commit
mailing list