Skip to content

Commit

Permalink
updated llvm python dependency to ver2.7; fixed JuliaLang#17157
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaier committed Jun 28, 2016
1 parent 6651f78 commit b86b597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/tools/find_python2
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh
#
# LLVM requires 2.5 <= python2 < 3
# LLVM requires 2.7 <= 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
$1 -c 'import sys; sys.exit(not (sys.version_info >= (2,7) and sys.version_info < (3,0)))' 2> /dev/null
}

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

0 comments on commit b86b597

Please sign in to comment.