diff options
author | Ray Donnelly <mingw.android@gmail.com> | 2013-05-21 23:00:02 +0100 |
---|---|---|
committer | Ray Donnelly <mingw.android@gmail.com> | 2013-05-21 23:00:02 +0100 |
commit | c2d6f7c10cd451d210cc2478814677d5bd2efc3e (patch) | |
tree | bb2af678efb7802db8ba1008d5572bfc27daeae2 | |
parent | 3a7af646f9c9a2c88bec34f64aaa5e7df97d4809 (diff) | |
download | python-c2d6f7c10cd451d210cc2478814677d5bd2efc3e.tar.gz |
Cross: Use full path for the cross Python interpreter
..and ensure it is version 2.7.5 or greater.
-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= |