mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
This is mandated by the Fedora packaging guidelines because it is a security vulnerability otherwise in suid scripts. While Xen doesn't have suid scripts, it's a very good idea generally because it prevents the users local python environment interfering from system packaged scripts. pygrub is the odd-script-out, being installed by distutils rather than manually with INSTALL_PYTHON_PROG. distutils has no nice way of editing the shebang, so arrange to use INSTALL_PYTHON_PROG for pygrub too. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
29 lines
797 B
Python
29 lines
797 B
Python
from distutils.core import setup, Extension
|
|
from distutils.ccompiler import new_compiler
|
|
import os
|
|
import sys
|
|
|
|
extra_compile_args = [ "-fno-strict-aliasing" ]
|
|
|
|
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'},
|
|
packages=pkgs,
|
|
ext_modules = [ xenfsimage ]
|
|
)
|