File sle12_python3_compat.patch of Package nodejs14.22015

Index: node-v14.17.1/configure
===================================================================
--- node-v14.17.1.orig/configure
+++ node-v14.17.1/configure
@@ -24,7 +24,7 @@ except ImportError:
   from distutils.spawn import find_executable as which
 
 print('Node.js configure: Found Python {0}.{1}.{2}...'.format(*sys.version_info))
-acceptable_pythons = ((3, 9), (3, 8), (3, 7), (3, 6), (3, 5), (2, 7))
+acceptable_pythons = ((3, 9), (3, 8), (3, 7), (3, 6), (3, 5), (3, 4), (2, 7))
 if sys.version_info[:2] in acceptable_pythons:
   import configure
 else:
Index: node-v14.17.1/deps/npm/node_modules/node-gyp/lib/find-python.js
===================================================================
--- node-v14.17.1.orig/deps/npm/node_modules/node-gyp/lib/find-python.js
+++ node-v14.17.1/deps/npm/node_modules/node-gyp/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.6.0 || >=3.5.0',
+  semverRange: '^2.6.0 || >=3.4.0',
 
   // These can be overridden for testing:
   execFile: cp.execFile,
openSUSE Build Service is sponsored by