• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python3
2
3from setuptools import Extension, setup
4
5setup(
6    name="selinux",
7    version="3.5",
8    description="SELinux python 3 bindings",
9    author="SELinux Project",
10    author_email="selinux@vger.kernel.org",
11    ext_modules=[
12        Extension('selinux._selinux',
13                  sources=['selinuxswig_python.i'],
14                  include_dirs=['../include'],
15                  library_dirs=['.'],
16                  libraries=['selinux']),
17        Extension('selinux.audit2why',
18                  sources=['audit2why.c'],
19                  include_dirs=['../include'],
20                  library_dirs=['.'],
21                  libraries=['selinux'],
22                  extra_link_args=['-l:libsepol.a', '-Wl,--version-script=audit2why.map'])
23    ],
24)
25