]> git.pld-linux.org Git - packages/spice-space.git/blob - python3.patch
- switch to python 3.x
[packages/spice-space.git] / python3.patch
1 diff -ur spice-0.15.2.orig/subprojects/spice-common/m4/spice-deps.m4 spice-0.15.2/subprojects/spice-common/m4/spice-deps.m4
2 --- spice-0.15.2.orig/subprojects/spice-common/m4/spice-deps.m4 2023-05-12 10:37:16.000000000 +0200
3 +++ spice-0.15.2/subprojects/spice-common/m4/spice-deps.m4      2023-07-22 16:21:54.669050493 +0200
4 @@ -152,22 +152,14 @@
5                         [enable_python_checks="no"])
6      if test "x$enable_python_checks" != "xno"; then
7          AS_IF([test -n "$PYTHON"], # already set required PYTHON version
8 -              [AM_PATH_PYTHON
9 -               AX_PYTHON_MODULE([six], [1])
10 -               AX_PYTHON_MODULE([pyparsing], [1])],
11                [PYTHON=python3
12                 AX_PYTHON_MODULE([six])
13                 AX_PYTHON_MODULE([pyparsing])
14                 test "$HAVE_PYMOD_SIX" = "yes" && test "$HAVE_PYMOD_PYPARSING" = "yes"],
15                [AM_PATH_PYTHON([3])],
16 -              [PYTHON=python2
17 -               AX_PYTHON_MODULE([six])
18 -               AX_PYTHON_MODULE([pyparsing])
19 -               test "$HAVE_PYMOD_SIX" = "yes" && test "$HAVE_PYMOD_PYPARSING" = "yes"],
20 -              [AM_PATH_PYTHON([2])],
21                [AC_MSG_ERROR([Python modules six and pyparsing are required])])
22      else
23 -        AM_PATH_PYTHON
24 +        AM_PATH_PYTHON([3])
25      fi
26  ])
27  
This page took 0.095215 seconds and 4 git commands to generate.