mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00

Latest python setuptools don't accept a '~' in the version, and fail the build. Replace '~' with '-' to avoid this.
19 lines
838 B
Python
19 lines
838 B
Python
from setuptools import setup, Extension
|
|
import string
|
|
|
|
setup(name = 'LibAppArmor',
|
|
version = '@VERSION@'.replace('~', '-'),
|
|
author = 'AppArmor Dev Team',
|
|
author_email = 'apparmor@lists.ubuntu.com',
|
|
url = 'https://wiki.apparmor.net',
|
|
description = 'AppArmor python bindings',
|
|
download_url = 'https://launchpad.net/apparmor/+download',
|
|
package_dir = {'LibAppArmor': '@srcdir@'},
|
|
packages = [ 'LibAppArmor' ],
|
|
ext_package = 'LibAppArmor',
|
|
ext_modules = [Extension('_LibAppArmor', ['libapparmor_wrap.c'],
|
|
include_dirs=['@top_srcdir@/include'],
|
|
extra_link_args = '-L@top_builddir@/src/.libs -lapparmor'.split(),
|
|
)],
|
|
scripts = [],
|
|
)
|