From 3440704a853e8f56c0a0aef74a306d4e28b17e51 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Fri, 4 Oct 2019 14:07:56 +1000 Subject: [PATCH] lib: restore python 2.6 compatibilty Dropped accidentally in backport @ https://github.com/nodejs/node-gyp/pull/1910 The change to >=2.7 was declared semver-major in https://github.com/nodejs/node-gyp/pull/1813 --- lib/find-python.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/find-python.js b/lib/find-python.js index cf06ef994c..22d0232b5e 100644 --- a/lib/find-python.js +++ b/lib/find-python.js @@ -18,7 +18,7 @@ PythonFinder.prototype = { log: logWithPrefix(log, 'find Python'), argsExecutable: ['-c', 'import sys; print(sys.executable);'], argsVersion: ['-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);'], - semverRange: '2.7.x || >=3.5.0', + semverRange: '>=2.6.0 || >=3.5.0', // These can be overridden for testing: execFile: cp.execFile,