blob: 05f84600a334b0db9599359dc2178d7233efdacc [file] [log] [blame]
Patrick Williams53961c22022-01-20 11:06:23 -06001m4/ax_python_devel.m4: do not check for distutils
2
3With py 3.10 this prints a deprecation warning which is
4taken as an error. Upstream should rework the code to not
5use distuils.
6
7Upstream-Status: Inappropriate [needs a proper fix upstream]
8Signed-off-by: Armin Kuster <akuster808@gmail.com>
9
10Index: git/libraries/libapparmor/m4/ac_python_devel.m4
11===================================================================
12--- git.orig/libraries/libapparmor/m4/ac_python_devel.m4
13+++ git/libraries/libapparmor/m4/ac_python_devel.m4
14@@ -66,21 +66,6 @@ variable to configure. See ``configure -
15 fi
16
17 #
18- # Check if you have distutils, else fail
19- #
20- AC_MSG_CHECKING([for the distutils Python package])
21- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22- if test -z "$ac_distutils_result"; then
23- AC_MSG_RESULT([yes])
24- else
25- AC_MSG_RESULT([no])
26- AC_MSG_ERROR([cannot import Python module "distutils".
27-Please check your Python installation. The error was:
28-$ac_distutils_result])
29- PYTHON_VERSION=""
30- fi
31-
32- #
33 # Check for Python include path
34 #
35 AC_MSG_CHECKING([for Python include path])