From: W. Trevor King Date: Wed, 17 Apr 2013 15:45:11 +0000 (-0400) Subject: setup.py: Oops, the module name is 'spam' not 'spammify' X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3c244ddcbba6de6bc7b72a926095aebfd528658;p=cpython-extension.git setup.py: Oops, the module name is 'spam' not 'spammify' With the old version you get: ImportError: dynamic module does not define init function (PyInit_spammify) --- diff --git a/setup.py b/setup.py index ee9bfa6..fa39f2c 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup, Extension spammify_module = Extension( - 'spammify', + 'spam', sources=['spammify.c']) setup(