@@ -18,8 +18,7 @@ PythonFinder.prototype = {
1818  log : logWithPrefix ( log ,  'find Python' ) , 
1919  argsExecutable : [  '-c' ,  'import sys; print(sys.executable);'  ] , 
2020  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' , 
2322
2423  // These can be overridden for testing: 
2524  execFile : cp . execFile , 
@@ -93,6 +92,11 @@ PythonFinder.prototype = {
9392          check : this . checkCommand , 
9493          arg : 'python' 
9594        } , 
95+         { 
96+           before : ( )  =>  {  this . addLog ( 'checking if "python3" can be used' )  } , 
97+           check : this . checkCommand , 
98+           arg : 'python3' 
99+         } , 
96100        { 
97101          before : ( )  =>  {  this . addLog ( 'checking if "python2" can be used' )  } , 
98102          check : this . checkCommand , 
@@ -286,7 +290,7 @@ PythonFinder.prototype = {
286290    //                                                           X 
287291    const  info  =  [ 
288292      '**********************************************************' , 
289-       'You need to install the latest version of Python 2.7 .' , 
293+       'You need to install the latest version of Python.' , 
290294      'Node-gyp should be able to find and use Python. If not,' , 
291295      'you can try one of the following options:' , 
292296      `- Use the switch --python="${ pathExample }  , 
0 commit comments