ia64/xen-unstable

view tools/pygrub/setup.py @ 6392:bca2fd76995e

Add EXT3 as built-in filesystem for x86/64 domU.
author kaf24@firebug.cl.cam.ac.uk
date Wed Aug 24 15:21:48 2005 +0000 (2005-08-24)
parents e173a853dc46
children 18f765da2725
line source
1 from distutils.core import setup, Extension
2 import os
4 extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
6 fsys_mods = []
7 fsys_pkgs = []
9 if os.path.exists("/usr/include/ext2fs/ext2_fs.h"):
10 ext2 = Extension("grub.fsys.ext2._pyext2",
11 extra_compile_args = extra_compile_args,
12 libraries = ["ext2fs"],
13 sources = ["src/fsys/ext2/ext2module.c"])
14 fsys_mods.append(ext2)
15 fsys_pkgs.append("grub.fsys.ext2")
17 if os.path.exists("/usr/include/reiserfs/reiserfs.h"):
18 reiser = Extension("grub.fsys.reiser._pyreiser",
19 extra_compile_args = extra_compile_args,
20 libraries = ["reiserfs"],
21 sources = ["src/fsys/reiser/reisermodule.c"])
22 fsys_mods.append(reiser)
23 fsys_pkgs.append("grub.fsys.reiser")
25 setup(name='pygrub',
26 version='0.3',
27 description='Boot loader that looks a lot like grub for Xen',
28 author='Jeremy Katz',
29 author_email='katzj@redhat.com',
30 license='GPL',
31 package_dir={'grub': 'src'},
32 scripts = ["src/pygrub"],
33 packages=['grub',
34 'grub.fsys'].extend(fsys_pkgs),
35 ext_modules = fsys_mods
36 )