ia64/xen-unstable

view tools/python/setup.py @ 6424:4abd299ef2f6

merge?
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 14:16:38 2005 +0000 (2005-08-25)
parents e24fd7012ffb fdfd511768a3
children 3428d58a85e1
line source
2 from distutils.core import setup, Extension
3 import os
5 XEN_ROOT = "../.."
7 extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
10 include_dirs = [ XEN_ROOT + "/tools/python/xen/lowlevel/xu",
11 XEN_ROOT + "/tools/libxc",
12 XEN_ROOT + "/tools/xenstore",
13 XEN_ROOT + "/tools/xcs",
14 ]
16 library_dirs = [ XEN_ROOT + "/tools/libxc",
17 XEN_ROOT + "/tools/xenstore",
18 ]
20 libraries = [ "xenctrl", "xenguest", "xenstore" ]
22 xc = Extension("xc",
23 extra_compile_args = extra_compile_args,
24 include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
25 library_dirs = library_dirs,
26 libraries = libraries,
27 sources = [ "xen/lowlevel/xc/xc.c" ])
29 xu = Extension("xu",
30 extra_compile_args = extra_compile_args,
31 include_dirs = include_dirs + [ "xen/lowlevel/xu" ],
32 library_dirs = library_dirs,
33 libraries = libraries,
34 sources = [ "xen/lowlevel/xu/xu.c" ])
36 xs = Extension("xs",
37 extra_compile_args = extra_compile_args,
38 include_dirs = include_dirs + [ "xen/lowlevel/xs" ],
39 library_dirs = library_dirs,
40 libraries = libraries,
41 sources = [ "xen/lowlevel/xs/xs.c" ])
43 setup(name = 'xen',
44 version = '3.0',
45 description = 'Xen',
46 packages = ['xen',
47 'xen.lowlevel',
48 'xen.util',
49 'xen.xend',
50 'xen.xend.server',
51 'xen.xend.xenstore',
52 'xen.xm',
53 'xen.web',
54 'xen.sv'
55 ],
56 ext_package = "xen.lowlevel",
57 ext_modules = [ xc, xu, xs ]
58 )
60 os.chdir('logging')
61 execfile('setup.py')