Patrick Williams | 53961c2 | 2022-01-20 11:06:23 -0600 | [diff] [blame] | 1 | m4/ax_python_devel.m4: do not check for distutils |
| 2 | |
| 3 | With py 3.10 this prints a deprecation warning which is |
| 4 | taken as an error. Upstream should rework the code to not |
| 5 | use distuils. |
| 6 | |
| 7 | Upstream-Status: Inappropriate [needs a proper fix upstream] |
| 8 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 9 | |
| 10 | Index: 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]) |