Source

cffi / testing / snippets / setuptools_package_1 / setup.py

from setuptools import setup

from cffi.packaging import FFIExtension, build_ext

import snip_setuptools_module1.ffibuilder

setup(
    packages=['snip_setuptools_module1'],
    ext_modules=[FFIExtension(snip_setuptools_module1.ffibuilder.build_ffi)],
    cmdclass={'build_ext': build_ext},
)