projects
/
cpython-extension.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a7743
)
setup.py: Add basic setup.py for a C extension
author
W. Trevor King
<wking@tremily.us>
Wed, 17 Apr 2013 15:41:05 +0000
(11:41 -0400)
committer
W. 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]
patch
|
blob
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],
+ )