mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
bitkeeper revision 1.1026.1.8 (40e1b09foCFBM0EuIgrSA1uLJrWuzA)
Restructuring the python code and libs - first stage.
This commit is contained in:
1 parent
4db27a4b7a
commit
48e9a9c636
136 files changed
+367
-651
No files matched your search
@@ -0,0 +1,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 ]
|
||||
)
|
||||