1from distutils.core import setup, Extension
2from distutils.ccompiler import new_compiler
3import os
4import sys
5
6extra_compile_args  = [ "-fno-strict-aliasing", "-Werror" ]
7
8XEN_ROOT = "../.."
9
10xenfsimage = Extension("xenfsimage",
11    extra_compile_args = extra_compile_args,
12    include_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
13    library_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
14    libraries = ["xenfsimage"],
15    sources = ["src/fsimage/fsimage.c"])
16
17pkgs = [ 'grub' ]
18
19setup(name='pygrub',
20      version='0.6',
21      description='Boot loader that looks a lot like grub for Xen',
22      author='Jeremy Katz',
23      author_email='katzj@redhat.com',
24      license='GPL',
25      package_dir={'grub': 'src', 'fsimage': 'src'},
26      scripts = ["src/pygrub"],
27      packages=pkgs,
28      ext_modules = [ xenfsimage ]
29      )
30