From 674fb7f63e1b90eb6fd8145ca51c5f45b845f835 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Thu, 18 Jan 2007 15:07:51 +0000 Subject: Allow xend configuration via Solaris SMF as well as the config file. Signed-off-by: John Levon --- tools/python/setup.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tools/python/setup.py') diff --git a/tools/python/setup.py b/tools/python/setup.py index 56dd3e4a0b..7b25025d9d 100644 --- a/tools/python/setup.py +++ b/tools/python/setup.py @@ -30,6 +30,13 @@ xs = Extension("xs", libraries = libraries, sources = [ "xen/lowlevel/xs/xs.c" ]) +scf = Extension("scf", + extra_compile_args = extra_compile_args, + include_dirs = include_dirs + [ "xen/lowlevel/scf" ], + library_dirs = library_dirs, + libraries = libraries, + sources = [ "xen/lowlevel/scf/scf.c" ]) + acm = Extension("acm", extra_compile_args = extra_compile_args, include_dirs = include_dirs + [ "xen/lowlevel/acm" ], @@ -37,6 +44,10 @@ acm = Extension("acm", libraries = libraries, sources = [ "xen/lowlevel/acm/acm.c" ]) +modules = [ xc, xs, acm ] +if os.uname()[0] == 'SunOS': + modules.append(scf) + setup(name = 'xen', version = '3.0', description = 'Xen', @@ -56,7 +67,7 @@ setup(name = 'xen', 'xen.xm.tests' ], ext_package = "xen.lowlevel", - ext_modules = [ xc, xs, acm ] + ext_modules = modules ) os.chdir('logging') -- cgit v1.2.3