Files
xen/tools/pygrub/setup.py
T
Ian Jackson e0178b6017 tools/pygrub: Add `xen' to fsimage python module name
This module should be called `libxenfsimage' for the same reasons that
the C library should.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
2018-10-15 14:49:33 +01:00

30 lines
840 B
Python

from distutils.core import setup, Extension
from distutils.ccompiler import new_compiler
import os
import sys
extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
XEN_ROOT = "../.."
xenfsimage = Extension("xenfsimage",
extra_compile_args = extra_compile_args,
include_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
library_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
libraries = ["xenfsimage"],
sources = ["src/fsimage/fsimage.c"])
pkgs = [ 'grub' ]
setup(name='pygrub',
version='0.6',
description='Boot loader that looks a lot like grub for Xen',
author='Jeremy Katz',
author_email='katzj@redhat.com',
license='GPL',
package_dir={'grub': 'src', 'fsimage': 'src'},
scripts = ["src/pygrub"],
packages=pkgs,
ext_modules = [ xenfsimage ]
)