diff options
-rw-r--r-- | Python-2.7.5/configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python-2.7.5/configure.ac b/Python-2.7.5/configure.ac index 4f5a951..108a0d4 100644 --- a/Python-2.7.5/configure.ac +++ b/Python-2.7.5/configure.ac @@ -21,7 +21,8 @@ if test "$cross_compiling" = yes; then if test -z "$PYTHON_FOR_BUILD"; then for interp in python$PACKAGE_VERSION python2 python; do which $interp >/dev/null 2>&1 || continue - if $interp -c 'import sys;sys.exit(not (sys.version_info@<:@:2@:>@ >= (2,7) and sys.version_info@<:@0@:>@ < 3))'; then + interp=$(which $interp) + if $interp -c 'import sys;sys.exit(not (sys.version_info@<:@:3@:>@ >= (2,7,5) and sys.version_info@<:@0@:>@ < 3))'; then break fi interp= |