mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge [2.11..2.13] Grep away deprecation warning for distutils
... which will be removed in Python 3.12, and that probably won't be used on systems running the AppArmor 2.1x branches. This prevents CI failures on gitlab.com, which uses a new-enough python to show DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives For 3.0 and master, the proper fix (switching to setuptools) was done in !813. I propose this patch for 2.11, 2.12 and 2.13. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/908 Approved-by: John Johansen <john@jjmx.net> Merged-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
commit
fd1b463643
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ variable to configure. See ``configure --help'' for reference.
|
||||||
# Check if you have distutils, else fail
|
# Check if you have distutils, else fail
|
||||||
#
|
#
|
||||||
AC_MSG_CHECKING([for the distutils Python package])
|
AC_MSG_CHECKING([for the distutils Python package])
|
||||||
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
|
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1 | grep -v DeprecationWarning`
|
||||||
if test -z "$ac_distutils_result"; then
|
if test -z "$ac_distutils_result"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue