ibus/ibus-force-python3.patch

40 lines
973 B
Diff

Index: ibus-1.5.8/configure.ac
===================================================================
--- ibus-1.5.8.orig/configure.ac
+++ ibus-1.5.8/configure.ac
@@ -379,9 +379,9 @@ AC_ARG_WITH(python,
AM_PATH_PYTHON([2.5])
AC_PATH_PROG(PYTHON2, python2)
-if test x"$PYTHON2" = x""; then
+#if test x"$PYTHON2" = x""; then
PYTHON2=$PYTHON
-fi
+#fi
PYGOBJECT_REQUIRED=3.0.0
Index: ibus-1.5.8/python-config.py
===================================================================
--- ibus-1.5.8.orig/python-config.py
+++ ibus-1.5.8/python-config.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python2.5
-
import sys
import os
import getopt
@@ -30,10 +28,10 @@ if opt == '--help':
exit_with_usage(0)
elif opt == '--prefix':
- print sysconfig.PREFIX
+ print(sysconfig.PREFIX)
elif opt == '--exec-prefix':
- print sysconfig.EXEC_PREFIX
+ print(sysconfig.EXEC_PREFIX)
elif opt in ('--includes', '--cflags'):
flags = ['-I' + sysconfig.get_python_inc(),