ia64/xen-unstable

view tools/python/setup.py @ 4166:aeccd691af4c

bitkeeper revision 1.1236.34.7 (423735acABhfn7rysHwGJkcVOLD6GA)

XCS cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Mar 15 19:21:16 2005 +0000 (2005-03-15)
parents 0a4b76b6b5a0
children a838a908e38e 16efdf7bbd57
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/libxutil",
13 XEN_ROOT + "/tools/xcs",
14 ]
16 library_dirs = [ XEN_ROOT + "/tools/libxc",
17 XEN_ROOT + "/tools/libxutil",
18 ]
20 libraries = [ "xc", "xutil" ]
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 setup(name = 'xen',
37 version = '2.0',
38 description = 'Xen',
39 packages = ['xen',
40 'xen.lowlevel',
41 'xen.util',
42 'xen.xend',
43 'xen.xend.server',
44 'xen.sv',
45 'xen.xm',
46 ],
47 ext_package = "xen.lowlevel",
48 ext_modules = [ xc, xu ]
49 )
51 os.chdir('logging')
52 execfile('setup.py')