summaryrefslogtreecommitdiffstats
path: root/debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-04-21 14:15:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-04-21 18:27:57 +0200
commitd51161364c6e2c1b6ff95bcb2bc857947d6b8937 (patch)
tree0a8673dd1eb7c9d9d2a4a85b15f83b492df3fe6d /debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py
parentc52a26f8de2e5852d85b332f7bbdbe202cb7a2ee (diff)
downloadtde-packaging-d5116136.tar.gz
tde-packaging-d5116136.zip
DEB sip4-tqt: Add packages for Python3 support.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit cfaca8188c485ae756f7d7f49fda1d9926d4652c)
Diffstat (limited to 'debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py')
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py b/debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py
new file mode 100644
index 000000000..15c4d79be
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py
@@ -0,0 +1,13 @@
+# import the sipconfig.py for the normal or the debug build
+
+import sys
+
+if getattr(sys, "pydebug", False):
+ try:
+ from sipconfig_d import *
+ from sipconfig_d import _pkg_config, _default_macros
+ except ImportError as msg:
+ raise ImportError('No module named sipconfig; package python-sip-tqt-dbg not installed')
+else:
+ from sipconfig_nd import *
+ from sipconfig_nd import _pkg_config, _default_macros