- sle12_python3_compat.patch: Adds Python 3.4 to compatible
python versions allowing us to build with python3 on SLE-12 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs13?expand=0&rev=12
This commit is contained in:
21
sle12_python3_compat.patch
Normal file
21
sle12_python3_compat.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
Index: node-v13.5.0/configure
|
||||
===================================================================
|
||||
--- node-v13.5.0.orig/configure
|
||||
+++ node-v13.5.0/configure
|
||||
@@ -11,6 +11,7 @@ which python3.8 >/dev/null && exec pytho
|
||||
which python3.7 >/dev/null && exec python3.7 "$0" "$@"
|
||||
which python3.6 >/dev/null && exec python3.6 "$0" "$@"
|
||||
which python3.5 >/dev/null && exec python3.5 "$0" "$@"
|
||||
+which python3.4 >/dev/null && exec python3.4 "$0" "$@"
|
||||
which python2.7 >/dev/null && exec python2.7 "$0" "$@"
|
||||
exec python "$0" "$@"
|
||||
''' "$0" "$@"
|
||||
@@ -21,7 +22,7 @@ import sys
|
||||
from distutils.spawn import find_executable
|
||||
|
||||
print('Node.js configure: Found Python {0}.{1}.{2}...'.format(*sys.version_info))
|
||||
-acceptable_pythons = ((3, 8), (3, 7), (3, 6), (3, 5), (2, 7))
|
||||
+acceptable_pythons = ((3, 8), (3, 7), (3, 6), (3, 5), (3, 4), (2, 7))
|
||||
if sys.version_info[:2] in acceptable_pythons:
|
||||
import configure
|
||||
else:
|
||||
Reference in New Issue
Block a user