diff options
-rw-r--r-- | debian/_base/libraries/pytde/debian/pytdeconfig.py | 8 | ||||
-rwxr-xr-x | debian/_base/libraries/pytde/debian/rules | 2 | ||||
-rw-r--r-- | dilos/libraries/pytde/debian/pytdeconfig.py | 8 | ||||
-rwxr-xr-x | dilos/libraries/pytde/debian/rules | 2 | ||||
-rw-r--r-- | ubuntu/_base/libraries/pytde/debian/pytdeconfig.py | 8 | ||||
-rwxr-xr-x | ubuntu/_base/libraries/pytde/debian/rules | 2 |
6 files changed, 24 insertions, 6 deletions
diff --git a/debian/_base/libraries/pytde/debian/pytdeconfig.py b/debian/_base/libraries/pytde/debian/pytdeconfig.py index 4536b9ff5..c12c20788 100644 --- a/debian/_base/libraries/pytde/debian/pytdeconfig.py +++ b/debian/_base/libraries/pytde/debian/pytdeconfig.py @@ -1,11 +1,17 @@ # import the sipconfig.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')) if 'd' in sys.abiflags: try: from pytdeconfig_d import * + from pytdeconfig_d import _pkg_config, _default_macros except ImportError as msg: - raise ImportError('No module named pytdeconfig; package python-trinity-dbg not installed') + raise ImportError('No module named pytdeconfig; package python3-pytde-dbg not installed') else: from pytdeconfig_nd import * + from pytdeconfig_nd import _pkg_config, _default_macros diff --git a/debian/_base/libraries/pytde/debian/rules b/debian/_base/libraries/pytde/debian/rules index bd0d34271..7f50df023 100755 --- a/debian/_base/libraries/pytde/debian/rules +++ b/debian/_base/libraries/pytde/debian/rules @@ -114,7 +114,7 @@ install-indep: dh_install -i -X'\.diff$$' -X'\.in$$' -X'\.html$$' for version in ${PYTHONS};\ do\ - pylib=$$(python$$version -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())');\ + pylib=$$(python$$version -c "import sysconfig; print(sysconfig.get_path('platstdlib'))");\ mkdir -p debian/pytde-dev/$$pylib;\ install -m 644 -o root -g root debian/pytdeconfig.py debian/pytde-dev/$$pylib/pytdeconfig.py;\ install -m 644 -o root -g root build-$$version/pytdeconfig.py debian/pytde-dev/$$pylib/pytdeconfig_nd.py;\ diff --git a/dilos/libraries/pytde/debian/pytdeconfig.py b/dilos/libraries/pytde/debian/pytdeconfig.py index 4536b9ff5..c12c20788 100644 --- a/dilos/libraries/pytde/debian/pytdeconfig.py +++ b/dilos/libraries/pytde/debian/pytdeconfig.py @@ -1,11 +1,17 @@ # import the sipconfig.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')) if 'd' in sys.abiflags: try: from pytdeconfig_d import * + from pytdeconfig_d import _pkg_config, _default_macros except ImportError as msg: - raise ImportError('No module named pytdeconfig; package python-trinity-dbg not installed') + raise ImportError('No module named pytdeconfig; package python3-pytde-dbg not installed') else: from pytdeconfig_nd import * + from pytdeconfig_nd import _pkg_config, _default_macros diff --git a/dilos/libraries/pytde/debian/rules b/dilos/libraries/pytde/debian/rules index 421b7fad9..40e46f0ad 100755 --- a/dilos/libraries/pytde/debian/rules +++ b/dilos/libraries/pytde/debian/rules @@ -117,7 +117,7 @@ install-indep: dh_install -i -X'\.diff$$' -X'\.in$$' -X'\.html$$' for version in ${PYTHONS};\ do\ - pylib=$$(python$$version -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())');\ + pylib=$$(python$$version -c "import sysconfig; print(sysconfig.get_path('platstdlib'))");\ mkdir -p debian/pytde-dev/$$pylib;\ install -m 644 -o root -g root debian/pytdeconfig.py debian/pytde-dev/$$pylib/pytdeconfig.py;\ install -m 644 -o root -g root build-$$version/pytdeconfig.py debian/pytde-dev/$$pylib/pytdeconfig_nd.py;\ diff --git a/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py b/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py index 4536b9ff5..c12c20788 100644 --- a/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py +++ b/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py @@ -1,11 +1,17 @@ # import the sipconfig.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')) if 'd' in sys.abiflags: try: from pytdeconfig_d import * + from pytdeconfig_d import _pkg_config, _default_macros except ImportError as msg: - raise ImportError('No module named pytdeconfig; package python-trinity-dbg not installed') + raise ImportError('No module named pytdeconfig; package python3-pytde-dbg not installed') else: from pytdeconfig_nd import * + from pytdeconfig_nd import _pkg_config, _default_macros diff --git a/ubuntu/_base/libraries/pytde/debian/rules b/ubuntu/_base/libraries/pytde/debian/rules index bd0d34271..7f50df023 100755 --- a/ubuntu/_base/libraries/pytde/debian/rules +++ b/ubuntu/_base/libraries/pytde/debian/rules @@ -114,7 +114,7 @@ install-indep: dh_install -i -X'\.diff$$' -X'\.in$$' -X'\.html$$' for version in ${PYTHONS};\ do\ - pylib=$$(python$$version -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())');\ + pylib=$$(python$$version -c "import sysconfig; print(sysconfig.get_path('platstdlib'))");\ mkdir -p debian/pytde-dev/$$pylib;\ install -m 644 -o root -g root debian/pytdeconfig.py debian/pytde-dev/$$pylib/pytdeconfig.py;\ install -m 644 -o root -g root build-$$version/pytdeconfig.py debian/pytde-dev/$$pylib/pytdeconfig_nd.py;\ |