Files
xen/tools/python/setup.py
T
cl349@firebug.cl.cam.ac.uk 3a834bf165 bitkeeper revision 1.1662.1.17 (42a59f62TbTw4kErDSfuOYh8iAzCuA)
setup.py:
  Add xenstore python bindings.
xs.c:
  new file
params.py:
  XSDAEMON_DEBUG -> XENSTORED_DEBUG
Makefile:
  xenstore is also a library -- build it before python.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 13:21:38 +00:00

60 lines
1.9 KiB
Python

from distutils.core import setup, Extension
import os
XEN_ROOT = "../.."
extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
include_dirs = [ XEN_ROOT + "/tools/python/xen/lowlevel/xu",
XEN_ROOT + "/tools/libxc",
XEN_ROOT + "/tools/xenstore",
XEN_ROOT + "/tools/xcs",
]
library_dirs = [ XEN_ROOT + "/tools/libxc",
XEN_ROOT + "/tools/xenstore",
]
libraries = [ "xc", "xenstore" ]
xc = Extension("xc",
extra_compile_args = extra_compile_args,
include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
library_dirs = library_dirs,
libraries = libraries,
sources = [ "xen/lowlevel/xc/xc.c" ])
xu = Extension("xu",
extra_compile_args = extra_compile_args,
include_dirs = include_dirs + [ "xen/lowlevel/xu" ],
library_dirs = library_dirs,
libraries = libraries,
sources = [ "xen/lowlevel/xu/xu.c" ])
xs = Extension("xs",
extra_compile_args = extra_compile_args,
include_dirs = include_dirs + [ "xen/lowlevel/xs" ],
library_dirs = library_dirs,
libraries = libraries,
sources = [ "xen/lowlevel/xs/xs.c" ])
setup(name = 'xen',
version = '2.0',
description = 'Xen',
packages = ['xen',
'xen.lowlevel',
'xen.util',
'xen.xend',
'xen.xend.server',
'xen.xm',
'xen.web',
],
ext_package = "xen.lowlevel",
ext_modules = [ xc, xu, xs ]
)
os.chdir('logging')
execfile('setup.py')