ia64/xen-unstable

view tools/python/setup.py @ 2422:2274a0386cc9

bitkeeper revision 1.1159.69.5 (4138e882jA1YaR_OfTfNHe_uT4PDIg)

trivial
author iap10@labyrinth.cl.cam.ac.uk
date Fri Sep 03 21:56:18 2004 +0000 (2004-09-03)
parents dae98734f12e
children b914ff7d73b5 3f929065a1d1 0a4b76b6b5a0
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 + "/xen/include/hypervisor-ifs",
11 XEN_ROOT + "/linux-xen-sparse/include",
12 XEN_ROOT + "/tools/python/xen/lowlevel/xu",
13 XEN_ROOT + "/tools/libxc",
14 XEN_ROOT + "/tools/libxutil",
15 ]
17 library_dirs = [ XEN_ROOT + "/tools/libxc",
18 XEN_ROOT + "/tools/libxutil",
19 ]
21 libraries = [ "xc", "xutil" ]
23 xc = Extension("xc",
24 extra_compile_args = extra_compile_args,
25 include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
26 library_dirs = library_dirs,
27 libraries = libraries,
28 sources = [ "xen/lowlevel/xc/xc.c" ])
30 xu = Extension("xu",
31 extra_compile_args = extra_compile_args,
32 include_dirs = include_dirs + [ "xen/lowlevel/xu" ],
33 library_dirs = library_dirs,
34 libraries = libraries,
35 sources = [ "xen/lowlevel/xu/xu.c" ])
37 setup(name = 'xen',
38 version = '2.0',
39 description = 'Xen',
40 packages = ['xen',
41 'xen.lowlevel',
42 'xen.util',
43 'xen.xend',
44 'xen.xend.server',
45 'xen.sv',
46 'xen.xm',
47 ],
48 ext_package = "xen.lowlevel",
49 ext_modules = [ xc, xu ]
50 )
52 os.chdir('logging')
53 execfile('setup.py')