1import sys, os
2
3
4from setup import include_dirs, sources, libraries, define_macros
5from setup import library_dirs, extra_compile_args, extra_link_args
6
7
8if __name__ == '__main__':
9    from distutils.core import setup
10    from distutils.extension import Extension
11    standard = '__pypy__' not in sys.builtin_module_names
12    setup(packages=['cffi'],
13          requires=['pycparser'],
14          ext_modules=[Extension(name = '_cffi_backend',
15                                 include_dirs=include_dirs,
16                                 sources=sources,
17                                 libraries=libraries,
18                                 define_macros=define_macros,
19                                 library_dirs=library_dirs,
20                                 extra_compile_args=extra_compile_args,
21                                 extra_link_args=extra_link_args,
22                                 )] * standard)
23