We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ac1e62 + b86b597 commit 0dcb477Copy full SHA for 0dcb477
deps/tools/find_python2
@@ -1,13 +1,13 @@
1
#!/bin/sh
2
#
3
-# LLVM requires 2.5 <= python2 < 3
+# LLVM requires 2.7 <= python2 < 3
4
5
6
valid_python() {
7
- $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
8
}
9
10
-for python in python python2 python2.7 python27 python2.6 python26 python2.5 python25; do
+for python in python python2 python2.7 python27; do
11
if valid_python $python; then
12
echo `which $python`
13
break
0 commit comments