selinux/libselinux/src/setup.py
James Carter 94364696c5 libselinux: Remove dependency on the Python module distutils
The distutils package is deprecated and scheduled to be removed in
Python 3.12. Use the setuptools and sysconfig modules instead.

Signed-off-by: James Carter <jwcart2@gmail.com>
Acked-by: Petr Lautrbach <plautrba@redhat.com>
2022-11-09 07:50:51 -05:00

25 lines
769 B
Python

#!/usr/bin/python3
from setuptools import Extension, setup
setup(
name="selinux",
version="3.4",
description="SELinux python 3 bindings",
author="SELinux Project",
author_email="selinux@vger.kernel.org",
ext_modules=[
Extension('selinux._selinux',
sources=['selinuxswig_python.i'],
include_dirs=['../include'],
library_dirs=['.'],
libraries=['selinux']),
Extension('selinux.audit2why',
sources=['audit2why.c'],
include_dirs=['../include'],
library_dirs=['.'],
libraries=['selinux'],
extra_link_args=['-l:libsepol.a', '-Wl,--version-script=audit2why.map'])
],
)