cjdns: patch of gyp imports support python3.10 (#974)
authorWilliam Fleurant <meshnet@protonmail.com>
Sun, 21 May 2023 01:33:54 +0000 (03:33 +0200)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 01:33:54 +0000 (03:33 +0200)
cjdns/patches/040-gyp-python_310.patch [new file with mode: 0644]

diff --git a/cjdns/patches/040-gyp-python_310.patch b/cjdns/patches/040-gyp-python_310.patch
new file mode 100644 (file)
index 0000000..abff213
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/node_build/dependencies/libuv/build/gyp/pylib/gyp/common.py
++++ b/node_build/dependencies/libuv/build/gyp/pylib/gyp/common.py
+@@ -4,7 +4,11 @@
+ from __future__ import with_statement
+-import collections
++try:
++  # Python 3.10
++  from six.moves import collections_abc as collections
++except ImportError:
++  import collections
+ import errno
+ import filecmp
+ import os.path