Skip to content

Commit 0dcb477

Browse files
authored
Merge pull request #17159 from benmaier/llvm-python27
updated llvm python dependency to ver2.7; fixed #17157
2 parents 3ac1e62 + b86b597 commit 0dcb477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/tools/find_python2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22
#
3-
# LLVM requires 2.5 <= python2 < 3
3+
# LLVM requires 2.7 <= python2 < 3
44
#
55

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

10-
for python in python python2 python2.7 python27 python2.6 python26 python2.5 python25; do
10+
for python in python python2 python2.7 python27; do
1111
if valid_python $python; then
1212
echo `which $python`
1313
break

0 commit comments

Comments
 (0)