Line | |
---|
1 | from distutils.core import setup, Extension |
---|
2 | from distutils.ccompiler import new_compiler |
---|
3 | import os |
---|
4 | import sys |
---|
5 | |
---|
6 | extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ] |
---|
7 | |
---|
8 | XEN_ROOT = "../.." |
---|
9 | |
---|
10 | fsimage = Extension("fsimage", |
---|
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 = ["fsimage"], |
---|
15 | sources = ["src/fsimage/fsimage.c"]) |
---|
16 | |
---|
17 | pkgs = [ 'grub' ] |
---|
18 | |
---|
19 | setup(name='pygrub', |
---|
20 | version='0.3', |
---|
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 = [ fsimage ] |
---|
29 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.