ia64/xen-unstable

view tools/python/setup.py @ 6689:7d0fb56b4a91

merge?
author cl349@firebug.cl.cam.ac.uk
date Wed Sep 07 19:01:31 2005 +0000 (2005-09-07)
parents 4e4aac33809f dd668f7527cb
children b2f4823b6ff0 b35215021b32 9af349b055e5 3233e7ecfa9f
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/libxc",
11 XEN_ROOT + "/tools/xenstore",
12 ]
14 library_dirs = [ XEN_ROOT + "/tools/libxc",
15 XEN_ROOT + "/tools/xenstore",
16 ]
18 libraries = [ "xenctrl", "xenguest", "xenstore" ]
20 xc = Extension("xc",
21 extra_compile_args = extra_compile_args,
22 include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
23 library_dirs = library_dirs,
24 libraries = libraries,
25 sources = [ "xen/lowlevel/xc/xc.c" ])
27 xs = Extension("xs",
28 extra_compile_args = extra_compile_args,
29 include_dirs = include_dirs + [ "xen/lowlevel/xs" ],
30 library_dirs = library_dirs,
31 libraries = libraries,
32 sources = [ "xen/lowlevel/xs/xs.c" ])
34 setup(name = 'xen',
35 version = '3.0',
36 description = 'Xen',
37 packages = ['xen',
38 'xen.lowlevel',
39 'xen.util',
40 'xen.xend',
41 'xen.xend.server',
42 'xen.xend.xenstore',
43 'xen.xm',
44 'xen.web',
45 'xen.sv'
46 ],
47 ext_package = "xen.lowlevel",
48 ext_modules = [ xc, xs ]
49 )
51 os.chdir('logging')
52 execfile('setup.py')