mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-06-19 13:14:06 +02:00
68761af76e
* gnu/packages/patches/python-zeroc-ice-3.6.5-python-3.12-support.patch: Add patch. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/python-xyz.scm (python-zeroc-ice-3.6): Use it. Merges: https://codeberg.org/guix/guix/pulls/8389 Change-Id: I73d3b981414474d880a82413dcff2fc11ef04d53 Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
25 lines
700 B
Diff
25 lines
700 B
Diff
diff --git a/lib/Ice.py b/lib/Ice.py
|
|
--- a/lib/Ice.py
|
|
+++ b/lib/Ice.py
|
|
@@ -11,7 +11,7 @@
|
|
Ice module
|
|
"""
|
|
|
|
-import sys, string, imp, os, threading, warnings, datetime
|
|
+import sys, string, importlib, os, threading, warnings, datetime
|
|
|
|
#
|
|
# RTTI problems can occur in C++ code unless we modify Python's dlopen flags.
|
|
@@ -373,7 +373,8 @@ def createModule(name):
|
|
elif curr in _pendingModules:
|
|
mod = _pendingModules[curr]
|
|
else:
|
|
- nmod = imp.new_module(curr)
|
|
+ spec = importlib.util.spec_from_loader(curr, loader=None)
|
|
+ nmod = importlib.util.module_from_spec(spec)
|
|
_pendingModules[curr] = nmod
|
|
mod = nmod
|
|
|
|
--
|
|
|