setup.py: Add basic setup.py for a C extension
authorW. Trevor King <wking@tremily.us>
Wed, 17 Apr 2013 15:41:05 +0000 (11:41 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 17 Apr 2013 15:41:52 +0000 (11:41 -0400)
Tweaked from http://docs.python.org/3/extending/building.html#building

setup.py [new file with mode: 0644]

diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..ee9bfa6
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,12 @@
+from distutils.core import setup, Extension
+
+spammify_module = Extension(
+    'spammify',
+    sources=['spammify.c'])
+
+setup(
+    name='Spammify',
+    version='1.0',
+    description='This is a spammify package',
+    ext_modules=[spammify_module],
+    )