Message ID | 20221028203852.526472-1-jwcart2@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | Remove dependency on the Python module distutils | expand |
James Carter <jwcart2@gmail.com> writes: > The distutils package is deprecated and scheduled to be removed in > Python 3.12. > > When building the SELinux userspace we currently get warnings like the following: > <string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead > <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives > > I am not a Python expert, but everything seems to work with these patches. > I would appreciate other people testing this and any Python experts to let > me know if this is the right way of replacing distutils. > > James Carter (5): > libselinux: Remove dependency on the Python module distutils > libsemanage: Remove dependency on the Python module distutils > python: Remove dependency on the Python module distutils > scripts: Remove dependency on the Python module distutils > README.md: Remove mention of python3-distutils dependency Acked-by: Petr Lautrbach <lautrbach@redhat.com> Thanks! > README.md | 1 - > libselinux/src/Makefile | 2 +- > libselinux/src/setup.py | 2 +- > libsemanage/src/Makefile | 2 +- > python/semanage/Makefile | 2 +- > python/sepolgen/src/sepolgen/Makefile | 2 +- > python/sepolicy/sepolicy/gui.py | 2 +- > python/sepolicy/setup.py | 2 +- > scripts/env_use_destdir | 2 +- > scripts/run-scan-build | 2 +- > 10 files changed, 9 insertions(+), 10 deletions(-) > > -- > 2.37.3