mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-08 18:31:03 +01:00

Acked-By: Steve Beattie <steve@nxnw.org> This patch allows libapparmor to be built out of tree.
19 lines
834 B
Python
19 lines
834 B
Python
from distutils.core import setup, Extension
|
|
import string
|
|
|
|
setup(name = 'LibAppArmor',
|
|
version = '@VERSION@',
|
|
author = 'AppArmor Dev Team',
|
|
author_email = 'Apparmor-dev@forge.novell.com',
|
|
url = 'http://developer.novell.com/wiki/index.php/Apparmor',
|
|
description = 'AppArmor python bindings',
|
|
download_url = 'http://developer.novell.com/wiki/index.php/Special:Downloads/apparmor',
|
|
package_dir = {'libapparmor1': '@srcdir@'},
|
|
packages = [ 'libapparmor1' ],
|
|
ext_package = 'libapparmor1',
|
|
ext_modules = [Extension('_libapparmor', ['libapparmor_wrap.c'],
|
|
include_dirs=['@top_srcdir@/src'],
|
|
extra_link_args = string.split('-L@top_builddir@/src/.libs -lapparmor'),
|
|
# static: extra_link_args = string.split('@top_builddir@/src/.libs/libapparmor.a'),
|
|
)],
|
|
)
|