from setuptools import setup, Extension setup( name='greet', version='1.0', description='Python Package with Hello World C Extension', ext_modules=[ Extension( 'greet', sources=['foo.c'], py_limited_api=True) ], )