Fix AttributeError: module 'importlib' has no attribute 'machinery'
authorDmitry Shachnev <mitya57@debian.org>
Sat, 7 Jan 2023 12:46:57 +0000 (16:46 +0400)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 7 Jan 2023 13:38:12 +0000 (13:38 +0000)
Origin: https://github.com/archlinux/svntogit-packages/blob/packages/pyside2/trunk/fix-build.patch

Gbp-Pq: Name importlib-machinery.patch

sources/shiboken2/libshiboken/embed/signature_bootstrap.py

index 902864267749a9e7cccbda15aef8f7d204cea9f6..c70abc54b153b3ff74f52c344bad9426babc3db4 100644 (file)
@@ -211,7 +211,7 @@ class EmbeddableZipImporter(object):
         return self if self._mod2path.get(fullname) else None
 
     def load_module(self, fullname):
-        import importlib
+        import importlib.machinery
         import sys
 
         filename = self._mod2path.get(fullname)