ia64/xen-unstable

view tools/pygrub/setup.py @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
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 )