ia64/xen-unstable

view tools/python/setup.py @ 19333:e2de0e760a0d

Fix qemu spawn for Solaris

On Solaris, xend runs in a 'process contract' such that all children
are killed when the service is restarted. Spawn qemu processes in a
new contract to avoid this.

Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 12 11:07:00 2009 +0000 (2009-03-12)
parents b9004e222fde
children
line source
2 from distutils.core import setup, Extension
3 import os
5 XEN_ROOT = "../.."
7 extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
9 include_dirs = [ XEN_ROOT + "/tools/libxc",
10 XEN_ROOT + "/tools/xenstore",
11 XEN_ROOT + "/tools/include",
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 scf = Extension("scf",
35 extra_compile_args = extra_compile_args,
36 include_dirs = include_dirs + [ "xen/lowlevel/scf" ],
37 library_dirs = library_dirs,
38 libraries = libraries,
39 sources = [ "xen/lowlevel/scf/scf.c" ])
41 process = Extension("process",
42 extra_compile_args = extra_compile_args,
43 include_dirs = include_dirs + [ "xen/lowlevel/process" ],
44 library_dirs = library_dirs,
45 libraries = libraries + [ "contract" ],
46 sources = [ "xen/lowlevel/process/process.c" ])
48 acm = Extension("acm",
49 extra_compile_args = extra_compile_args,
50 include_dirs = include_dirs + [ "xen/lowlevel/acm" ],
51 library_dirs = library_dirs,
52 libraries = libraries,
53 sources = [ "xen/lowlevel/acm/acm.c" ])
55 flask = Extension("flask",
56 extra_compile_args = extra_compile_args,
57 include_dirs = include_dirs + [ "xen/lowlevel/flask" ] +
58 [ "../flask/libflask/include" ],
59 library_dirs = library_dirs + [ "../flask/libflask" ],
60 libraries = libraries + [ "flask" ],
61 sources = [ "xen/lowlevel/flask/flask.c" ])
63 ptsname = Extension("ptsname",
64 extra_compile_args = extra_compile_args,
65 include_dirs = include_dirs + [ "ptsname" ],
66 library_dirs = library_dirs,
67 libraries = libraries,
68 sources = [ "ptsname/ptsname.c" ])
70 modules = [ xc, xs, ptsname, acm, flask ]
71 if os.uname()[0] == 'SunOS':
72 modules.append(scf)
73 modules.append(process)
75 setup(name = 'xen',
76 version = '3.0',
77 description = 'Xen',
78 packages = ['xen',
79 'xen.lowlevel',
80 'xen.util',
81 'xen.util.xsm',
82 'xen.util.xsm.dummy',
83 'xen.util.xsm.flask',
84 'xen.util.xsm.acm',
85 'xen.xend',
86 'xen.xend.server',
87 'xen.xend.xenstore',
88 'xen.xm',
89 'xen.web',
90 'xen.sv',
91 'xen.xsview',
93 'xen.xend.tests',
94 'xen.xend.server.tests',
95 'xen.xend.xenstore.tests',
96 'xen.xm.tests'
97 ],
98 ext_package = "xen.lowlevel",
99 ext_modules = modules
100 )
102 os.chdir('logging')
103 execfile('setup.py')