diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-25 13:31:53 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-25 13:31:53 +0900 |
commit | 72f1328d206e603f47a6afc3085e483474189c48 (patch) | |
tree | 845b4ed798dea7438741d5e342a18ddd426c4037 /dilos/dependencies/pytqt/debian/pytqtconfig_py3.py | |
parent | a5f5e1ded206ce17745145a734f36b418eefbb99 (diff) | |
download | tde-packaging-72f1328d206e603f47a6afc3085e483474189c48.tar.gz tde-packaging-72f1328d206e603f47a6afc3085e483474189c48.zip |
DEB pytqt: add support for python 3.12
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'dilos/dependencies/pytqt/debian/pytqtconfig_py3.py')
-rw-r--r-- | dilos/dependencies/pytqt/debian/pytqtconfig_py3.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dilos/dependencies/pytqt/debian/pytqtconfig_py3.py b/dilos/dependencies/pytqt/debian/pytqtconfig_py3.py new file mode 100644 index 000000000..c25f1f56e --- /dev/null +++ b/dilos/dependencies/pytqt/debian/pytqtconfig_py3.py @@ -0,0 +1,17 @@ +# import the pytqtconfig.py for the normal or the debug build + +import os +import sys +import sysconfig + +sys.path.insert(0, os.path.join(sysconfig.get_path('platstdlib'), 'dist-packages', 'PyTQt')) + +if 'd' in sys.abiflags: + try: + from pytqtconfig_d import * + from pytqtconfig_d import _pkg_config, _default_macros + except ImportError as msg: + raise ImportError('No module named pytqtconfig; package python3-pytqt-dbg not installed') +else: + from pytqtconfig_nd import * + from pytqtconfig_nd import _pkg_config, _default_macros |