@@ -18,8 +18,7 @@ PythonFinder.prototype = {
18
18
log : logWithPrefix ( log , 'find Python' ) ,
19
19
argsExecutable : [ '-c' , 'import sys; print(sys.executable);' ] ,
20
20
argsVersion : [ '-c' , 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ] ,
21
- semverRange : process . env . EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
22
- : '>=2.7.0 <3.0.0' ,
21
+ semverRange : '2.7.x || >=3.5.0' ,
23
22
24
23
// These can be overridden for testing:
25
24
execFile : cp . execFile ,
@@ -93,6 +92,11 @@ PythonFinder.prototype = {
93
92
check : this . checkCommand ,
94
93
arg : 'python'
95
94
} ,
95
+ {
96
+ before : ( ) => { this . addLog ( 'checking if "python3" can be used' ) } ,
97
+ check : this . checkCommand ,
98
+ arg : 'python3'
99
+ } ,
96
100
{
97
101
before : ( ) => { this . addLog ( 'checking if "python2" can be used' ) } ,
98
102
check : this . checkCommand ,
@@ -286,7 +290,7 @@ PythonFinder.prototype = {
286
290
// X
287
291
const info = [
288
292
'**********************************************************' ,
289
- 'You need to install the latest version of Python 2.7 .' ,
293
+ 'You need to install the latest version of Python.' ,
290
294
'Node-gyp should be able to find and use Python. If not,' ,
291
295
'you can try one of the following options:' ,
292
296
`- Use the switch --python="${ pathExample } "` ,
0 commit comments