aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/setup.py
blob: b0eb3f2ebd81aa91b520de57af0f3aea017986ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from distutils.core import setup, Extension

XEN_ROOT = "../.."

extra_compile_args  = ["-fno-strict-aliasing"]


include_dirs = [ XEN_ROOT + "/xen/include/hypervisor-ifs",
                 XEN_ROOT + "/linux-xen-sparse/include",
                 XEN_ROOT + "/tools/python/xen/ext/xu",
                 XEN_ROOT + "/tools/libxc",
                 XEN_ROOT + "/tools/libxutil",
                 ]

library_dirs = [ XEN_ROOT + "/tools/libxc",
                 XEN_ROOT + "/tools/libxutil",
                 ]

libraries = [ "xc", "xutil" ]

xc = Extension("xc",
               extra_compile_args = extra_compile_args,
               include_dirs       = include_dirs + [ "xen/ext/xc" ],
               library_dirs       = library_dirs,
               libraries          = libraries,
               sources            = [ "xen/ext/xc/xc.c" ])

xu = Extension("xu",
               extra_compile_args = extra_compile_args,
               include_dirs       = include_dirs + [ "xen/ext/xu" ],
               library_dirs       = library_dirs,
               libraries          = libraries,
               sources            = [ "xen/ext/xu/xu.c" ])
               
setup(name            = 'xen',
      version         = '2.0',
      description     = 'Xen',
      packages        = ['xen',
                         'xen.ext',
                         'xen.util',
                         'xen.xend',
                         'xen.xend.server',
                         'xen.xm',
                         ],
      ext_package = "xen.ext",
      ext_modules = [ xc, xu ]
      )