from distutils.core import setup, Extension module1 = Extension('spam', sources = ['spammodule.c']) setup(name = 'pkgname', version = '1.0', description = 'this is the package description', ext_modules = [module1])