summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cjdns/patches/040-gyp-python_310.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/cjdns/patches/040-gyp-python_310.patch b/cjdns/patches/040-gyp-python_310.patch
new file mode 100644
index 0000000..abff213
--- /dev/null
+++ b/cjdns/patches/040-gyp-python_310.patch
@@ -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