1 2 3 4 5 6 7 8 9
from setuptools import setup, Extension setup(ext_modules=[ Extension( '_foo', ['_foo.c'], py_limited_api = True, ) ])