LV2 files updated to accomodate python 3.12 which deleted imp since deprecated for...
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / suil-0.10.6.patch1
diff --git a/cinelerra-5.1/thirdparty/src/suil-0.10.6.patch1 b/cinelerra-5.1/thirdparty/src/suil-0.10.6.patch1
new file mode 100644 (file)
index 0000000..274285a
--- /dev/null
@@ -0,0 +1,21 @@
+--- ./waflib/Context.py
++++ ./waflib/Context.py
+@@ -6,10 +6,17 @@
+ Classes and functions enabling the command system
+ """
+-import os, re, imp, sys
++import os, re, sys
+ from waflib import Utils, Errors, Logs
+ import waflib.Node
++if sys.hexversion > 0x3040000:
++        import types 
++        class imp(object):
++                new_module = lambda x: types.ModuleType(x)
++else:
++        import imp
++
+ # the following 3 constants are updated on each new release (do not touch)
+ HEXVERSION=0x2001200
+ """Constant updated on new releases"""