Skip to content

Commit

Permalink
Merge pull request #17159 from benmaier/llvm-python27
Browse files Browse the repository at this point in the history
updated llvm python dependency to ver2.7; fixed #17157
  • Loading branch information
vtjnash authored Jun 28, 2016
2 parents 3ac1e62 + b86b597 commit 0dcb477
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 0dcb477

Please sign in to comment.