https://github.com/JuliaLang/julia
Raw File
Tip revision: 63999242fae8d86da56536c49fbc7aaa05bd6a6a authored by jake bolewski on 18 January 2015, 22:18:54 UTC
allow the REPL to bootstrap, REPL completion works but incomplete input throws an error
Tip revision: 6399924
find_python2
#!/bin/sh
#
# LLVM requires 2.5 <= python2 < 3
#

valid_python() {
    $1 -c 'import sys; sys.exit(not (sys.version_info >= (2,5) and sys.version_info < (3,0)))' 2> /dev/null
}

for python in python python2 python2.7 python27 python2.6 python26 python2.5 python25; do
    if valid_python $python; then
        echo `which $python`
        break
    fi
done

back to top