We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7ac0b2 commit 9d80a26Copy full SHA for 9d80a26
configure
@@ -2,7 +2,16 @@
2
3
import sys
4
if sys.version_info[0] != 2 or sys.version_info[1] not in (6, 7):
5
- sys.stdout.write("Please use either Python 2.6 or 2.7\n")
+ sys.stderr.write('Please use either Python 2.6 or 2.7')
6
+
7
+ from distutils.spawn import find_executable as which
8
+ python2 = which('python2') or which('python2.6') or which('python2.7')
9
10
+ if python2:
11
+ sys.stderr.write(':\n\n')
12
+ sys.stderr.write(' ' + python2 + ' ' + ' '.join(sys.argv))
13
14
+ sys.stderr.write('\n')
15
sys.exit(1)
16
17
import errno
0 commit comments