--- /dev/null
+--- python.m4.orig 2022-05-09 23:20:11.000000000 +0200
++++ python.m4 2022-05-28 17:32:01.992152356 +0200
+@@ -16,7 +16,7 @@
+ # "python2" and "python3", in which case it's reasonable to prefer the
+ # newer version.
+ AC_DEFUN([PGAC_PATH_PYTHON],
+-[PGAC_PATH_PROGS(PYTHON, [python python3 python2])
++[PGAC_PATH_PROGS(PYTHON, [python3 python2 python])
+ if test x"$PYTHON" = x""; then
+ AC_MSG_ERROR([Python not found])
+ fi