cjdns/cjdns.python3.patch

44 lines
1.5 KiB
Diff
Raw Normal View History

2017-02-18 20:37:24 +00:00
diff -up ./node_build/dependencies/libuv/gyp_uv.py.python3 ./node_build/dependencies/libuv/gyp_uv.py
2019-09-19 17:19:19 +00:00
--- ./node_build/dependencies/libuv/gyp_uv.py.python3 2019-08-06 18:58:48.000000000 -0400
+++ ./node_build/dependencies/libuv/gyp_uv.py 2019-09-19 13:11:51.125240959 -0400
2017-02-18 20:37:24 +00:00
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
2019-09-19 17:19:19 +00:00
+#!/usr/bin/python3
2017-02-18 20:37:24 +00:00
2018-02-21 18:58:17 +00:00
import os
2017-02-18 20:37:24 +00:00
import platform
2019-09-19 17:19:19 +00:00
@@ -29,7 +29,7 @@ def host_arch():
def run_gyp(args):
rc = gyp.main(args)
if rc != 0:
- print 'Error running GYP'
+ print('Error running GYP')
sys.exit(rc)
@@ -80,5 +80,5 @@ if __name__ == '__main__':
args.append('-Dcomponent=static_library')
gyp_args = list(args)
- print gyp_args
+ print(gyp_args)
run_gyp(gyp_args)
diff -up ./node_build/FindPython2.js.python3 ./node_build/FindPython2.js
--- ./node_build/FindPython2.js.python3 2019-09-19 13:14:40.677573302 -0400
+++ ./node_build/FindPython2.js 2019-09-19 13:15:15.796056265 -0400
@@ -16,12 +16,12 @@ var nThen = require('nthen');
var Spawn = require('child_process').spawn;
var Fs = require('fs');
-var PYTHONS = ["python", "python2", "python2.7", "python2.6", "python2.5"];
+var PYTHONS = ["python", "python2", "python2.7", "python2.6", "python3"];
var SCRIPT = [
'import sys;',
'print(sys.version_info);',
- 'exit(sys.version_info[0] != 2 or sys.version_info[1] < 7);'
+ 'exit(sys.version_info[0] < 2 or sys.version_info[1] < 6);'
].join('\n');
var find = module.exports.find = function (tempFile, callback) {