diff options
author | Slávek Banko <[email protected]> | 2022-04-21 14:15:05 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-04-21 18:27:57 +0200 |
commit | d51161364c6e2c1b6ff95bcb2bc857947d6b8937 (patch) | |
tree | 0a8673dd1eb7c9d9d2a4a85b15f83b492df3fe6d /ubuntu/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py | |
parent | c52a26f8de2e5852d85b332f7bbdbe202cb7a2ee (diff) | |
download | tde-packaging-d51161364c6e2c1b6ff95bcb2bc857947d6b8937.tar.gz tde-packaging-d51161364c6e2c1b6ff95bcb2bc857947d6b8937.zip |
DEB sip4-tqt: Add packages for Python3 support.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit cfaca8188c485ae756f7d7f49fda1d9926d4652c)
Diffstat (limited to 'ubuntu/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py')
-rw-r--r-- | ubuntu/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ubuntu/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py b/ubuntu/_base/dependencies/sip4-tqt/debian/sipconfig_py3.py new file mode 100644 index 000000000..15c4d79be --- /dev/null +++ b/ubuntu/_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 |