From: William Fleurant Date: Sun, 21 May 2023 01:33:54 +0000 (+0200) Subject: cjdns: patch of gyp imports support python3.10 (#974) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e8856b93da72f9d1a8490a59cdba5ecfbe76c84e;p=feed%2Frouting.git cjdns: patch of gyp imports support python3.10 (#974) --- 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