DEB pytqt: add support for python 3.12

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/273/head
Michele Calgaro 10 months ago
parent a5f5e1ded2
commit 72f1328d20
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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

@ -97,12 +97,15 @@ install-indep: configure
dh_testroot dh_testroot
dh_clean -k -i dh_clean -k -i
dh_installdirs -i dh_installdirs -i
for version in ${PYTHONS}; do\ for version in ${PYTHONS}; do \
pylib=$$(python$$version -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())')/PyTQt;\ pylibdev=debian/pytqt-dev/$$(python$$version -c "import sysconfig; print(sysconfig.get_path('platstdlib'))")/dist-packages/PyTQt;\
mkdir -p debian/pytqt-dev/$$pylib;\ mkdir -p $$pylibdev;\
install -m 644 -o root -g root build-$$version/pytqtconfig.py debian/pytqt-dev/$$pylib;\ install -m 644 -o root -g root build-$$version/pytqtconfig.py $$pylibdev/pytqtconfig_nd.py; \
install -m 644 -o root -g root dbg-build-$$version/pytqtconfig.py $$pylibdev/pytqtconfig_d.py; \
done done
dh_install -i dh_install -i
mkdir -p debian/pytqt-dev/usr/lib/python3/dist-packages/PyTQt
install -m 644 -o root -g root debian/pytqtconfig_py3.py debian/pytqt-dev/usr/lib/python3/dist-packages/PyTQt/pytqtconfig.py
install-arch: build install-arch: build
dh_testdir dh_testdir

@ -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

@ -100,12 +100,15 @@ install-indep: configure
dh_testroot dh_testroot
dh_clean -k -i dh_clean -k -i
dh_installdirs -i dh_installdirs -i
for version in ${PYTHONS}; do\ for version in ${PYTHONS}; do \
pylib=$$(python$$version -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())')/PyTQt;\ pylibdev=debian/pytqt-dev/$$(python$$version -c "import sysconfig; print(sysconfig.get_path('platstdlib'))")/dist-packages/PyTQt;\
mkdir -p debian/pytqt-dev/$$pylib;\ mkdir -p $$pylibdev;\
install -m 644 -o root -g root build-$$version/pytqtconfig.py debian/pytqt-dev/$$pylib;\ install -m 644 -o root -g root build-$$version/pytqtconfig.py $$pylibdev/pytqtconfig_nd.py; \
install -m 644 -o root -g root dbg-build-$$version/pytqtconfig.py $$pylibdev/pytqtconfig_d.py; \
done done
dh_install -i dh_install -i
mkdir -p debian/pytqt-dev/usr/lib/python3/dist-packages/PyTQt
install -m 644 -o root -g root debian/pytqtconfig_py3.py debian/pytqt-dev/usr/lib/python3/dist-packages/PyTQt/pytqtconfig.py
install-arch: build install-arch: build
dh_testdir dh_testdir

@ -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

@ -97,12 +97,15 @@ install-indep: configure
dh_testroot dh_testroot
dh_clean -k -i dh_clean -k -i
dh_installdirs -i dh_installdirs -i
for version in ${PYTHONS}; do\ for version in ${PYTHONS}; do \
pylib=$$(python$$version -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())')/PyTQt;\ pylibdev=debian/pytqt-dev/$$(python$$version -c "import sysconfig; print(sysconfig.get_path('platstdlib'))")/dist-packages/PyTQt;\
mkdir -p debian/pytqt-dev/$$pylib;\ mkdir -p $$pylibdev;\
install -m 644 -o root -g root build-$$version/pytqtconfig.py debian/pytqt-dev/$$pylib;\ install -m 644 -o root -g root build-$$version/pytqtconfig.py $$pylibdev/pytqtconfig_nd.py; \
install -m 644 -o root -g root dbg-build-$$version/pytqtconfig.py $$pylibdev/pytqtconfig_d.py; \
done done
dh_install -i dh_install -i
mkdir -p debian/pytqt-dev/usr/lib/python3/dist-packages/PyTQt
install -m 644 -o root -g root debian/pytqtconfig_py3.py debian/pytqt-dev/usr/lib/python3/dist-packages/PyTQt/pytqtconfig.py
install-arch: build install-arch: build
dh_testdir dh_testdir

Loading…
Cancel
Save