From 757c1c8fc4386b24e93fd4b571a7b92e0120163c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Tue, 16 Aug 2022 11:14:24 +0800 Subject: [PATCH] support build with python3 Forwarded: not-needed Last-Update: 2020-08-08 Gbp-Pq: Name python3.patch --- configure | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/configure b/configure index 9156e13f..440938b0 100755 --- a/configure +++ b/configure @@ -4,7 +4,7 @@ # mix of single and double quotes is intentional, as is the fact that # the ] goes on a new line. _=[ 'exec' '/bin/sh' '-c' ''' -which python2.7 >/dev/null && exec python2.7 "$0" "$@" +which python3 >/dev/null && exec python3 "$0" "$@" which python2 >/dev/null && exec python2 "$0" "$@" exec python "$0" "$@" ''' "$0" "$@" @@ -13,16 +13,5 @@ del _ import sys from distutils.spawn import find_executable as which -if sys.version_info[:2] != (2, 7): - sys.stderr.write('Please use Python 2.7') - - python2 = which('python2') or which('python2.7') - - if python2: - sys.stderr.write(':\n\n') - sys.stderr.write(' ' + python2 + ' ' + ' '.join(sys.argv)) - - sys.stderr.write('\n') - sys.exit(1) import configure