4 setup.py file for SWIG libfdt
7 from distutils.core import setup, Extension
11 # Don't cross-compile - always use the host compiler.
12 del os.environ['CROSS_COMPILE']
15 progname = sys.argv[0]
20 cflags = [flag for flag in cflags.split(' ') if flag]
24 libfdt_module = Extension(
27 extra_compile_args = cflags
30 sys.argv = [progname, '--quiet', 'build_ext', '--inplace']
32 setup (name = 'libfdt',
35 description = """Simple swig libfdt from docs""",
36 ext_modules = [libfdt_module],
37 py_modules = ["libfdt"],