From: W. Trevor King Date: Wed, 17 Apr 2013 15:41:05 +0000 (-0400) Subject: setup.py: Add basic setup.py for a C extension X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e4a1997c98720b07779ef1fe267acc1839b9152;p=cpython-extension.git setup.py: Add basic setup.py for a C extension Tweaked from http://docs.python.org/3/extending/building.html#building --- diff --git a/setup.py b/setup.py new file mode 100644 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], + )