File: importlib-machinery.patch

package info (click to toggle)
pyside2 5.15.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 34,708 kB
  • sloc: python: 223,764; cpp: 80,118; xml: 17,240; sh: 68; makefile: 39; javascript: 16
file content (22 lines) | stat: -rw-r--r-- 962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sat, 7 Jan 2023 16:46:57 +0400
Subject: Fix AttributeError: module 'importlib' has no attribute 'machinery'

Origin: https://github.com/archlinux/svntogit-packages/blob/packages/pyside2/trunk/fix-build.patch
---
 sources/shiboken2/libshiboken/embed/signature_bootstrap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py
index 9028642..c70abc5 100644
--- a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py
+++ b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py
@@ -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)