Skip to content

Python3.14 cpack incompatibility #68

@LocutusOfBorg

Description

@LocutusOfBorg

Hello, from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123232


[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dlt  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated

[... snipped ...]

copying build/lib/dlt/core/__init__.py -> build/bdist.linux-x86_64/wheel/./dlt/core
copying build/lib/dlt/dlt.py -> build/bdist.linux-x86_64/wheel/./dlt
copying build/lib/dlt/py_dlt_receive.py -> build/bdist.linux-x86_64/wheel/./dlt
copying build/lib/dlt/helpers.py -> build/bdist.linux-x86_64/wheel/./dlt
copying build/lib/dlt/dlt_broker_handlers.py -> build/bdist.linux-x86_64/wheel/./dlt
copying build/lib/dlt/__init__.py -> build/bdist.linux-x86_64/wheel/./dlt
running install_egg_info
Copying dlt.egg-info to build/bdist.linux-x86_64/wheel/./dlt-0.0.0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/dlt-0.0.0.dist-info/WHEEL
creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dlt/.tmp-3ux93kgh/dlt-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'dlt/__init__.py'
adding 'dlt/dlt.py'
adding 'dlt/dlt_broker.py'
adding 'dlt/dlt_broker_handlers.py'
adding 'dlt/helpers.py'
adding 'dlt/py_dlt_receive.py'
adding 'dlt/core/__init__.py'
adding 'dlt/core/core_21810.py'
adding 'dlt/core/core_2188.py'
adding 'dlt/core/core_base.py'
adding 'dlt-0.0.0.dist-info/licenses/LICENCE.txt'
adding 'dlt-0.0.0.dist-info/METADATA'
adding 'dlt-0.0.0.dist-info/WHEEL'
adding 'dlt-0.0.0.dist-info/entry_points.txt'
adding 'dlt-0.0.0.dist-info/top_level.txt'
adding 'dlt-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built dlt-0.0.0-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with "installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dlt/build; python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: tox.ini
plugins: typeguard-4.4.4
collected 14 items / 12 errors

==================================== ERRORS ====================================
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_broker_from_file_spinner_test.py _
tests/dlt_broker_from_file_spinner_test.py:11: in <module>
    from dlt.dlt_broker import DLTBroker, logger
dlt/dlt_broker.py:11: in <module>
    from dlt.dlt_broker_handlers import (
dlt/dlt_broker_handlers.py:15: in <module>
    from dlt.dlt import (
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_broker_time_test.py _
tests/dlt_broker_time_test.py:11: in <module>
    from dlt.dlt_broker import create_filter_ack_queue, DLTBroker, logger
dlt/dlt_broker.py:11: in <module>
    from dlt.dlt_broker_handlers import (
dlt/dlt_broker_handlers.py:15: in <module>
    from dlt.dlt import (
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_client_unit_test.py _
tests/dlt_client_unit_test.py:7: in <module>
    from dlt.dlt import DLTClient, DLT_RETURN_OK, DLT_RETURN_ERROR
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_context_handler_unit_test.py _
tests/dlt_context_handler_unit_test.py:7: in <module>
    from dlt.dlt_broker_handlers import DLTContextHandler
dlt/dlt_broker_handlers.py:15: in <module>
    from dlt.dlt import (
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_file_spinner_unit_test.py _
tests/dlt_file_spinner_unit_test.py:10: in <module>
    from dlt.dlt_broker_handlers import DLTFileSpinner
dlt/dlt_broker_handlers.py:15: in <module>
    from dlt.dlt import (
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_filter_unit_test.py _
tests/dlt_filter_unit_test.py:7: in <module>
    from dlt.dlt import DLTFilter
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_main_loop_by_reading_dlt_file_unit_test.py _
tests/dlt_main_loop_by_reading_dlt_file_unit_test.py:9: in <module>
    from dlt.dlt import cDLTFile, py_dlt_file_main_loop
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_main_loop_unit_test.py _
tests/dlt_main_loop_unit_test.py:10: in <module>
    from dlt.dlt import py_dlt_client_main_loop, DLTClient, logger
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_main_loop_with_dlt_client_unit_test.py _
tests/dlt_main_loop_with_dlt_client_unit_test.py:10: in <module>
    from dlt.dlt import py_dlt_client_main_loop, DLTClient, logger
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_message_handler_unit_test.py _
tests/dlt_message_handler_unit_test.py:8: in <module>
    from dlt.dlt_broker_handlers import DLTMessageHandler
dlt/dlt_broker_handlers.py:15: in <module>
    from dlt.dlt import (
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_message_performance_test.py _
tests/dlt_message_performance_test.py:7: in <module>
    from dlt.dlt import DLTFilter
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
_ ERROR collecting .pybuild/cpython3_3.14_dlt/build/tests/dlt_message_unit_test.py _
tests/dlt_message_unit_test.py:10: in <module>
    from dlt.dlt import DLTMessage
dlt/dlt.py:15: in <module>
    from dlt.core import (
dlt/core/__init__.py:6: in <module>
    from dlt.core.core_base import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dlt/core/core_base.py:184: in <module>
    class cDltServiceConnectionInfo(ctypes.Structure):
/usr/lib/python3.14/ctypes/_layout.py:81: in get_layout
    warnings._deprecated(
/usr/lib/python3.14/_py_warnings.py:833: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: Due to '_pack_', the 'cDltServiceConnectionInfo' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
=========================== short test summary info ============================
ERROR tests/dlt_broker_from_file_spinner_test.py - DeprecationWarning: Due to...
ERROR tests/dlt_broker_time_test.py - DeprecationWarning: Due to '_pack_', th...
ERROR tests/dlt_client_unit_test.py - DeprecationWarning: Due to '_pack_', th...
ERROR tests/dlt_context_handler_unit_test.py - DeprecationWarning: Due to '_p...
ERROR tests/dlt_file_spinner_unit_test.py - DeprecationWarning: Due to '_pack...
ERROR tests/dlt_filter_unit_test.py - DeprecationWarning: Due to '_pack_', th...
ERROR tests/dlt_main_loop_by_reading_dlt_file_unit_test.py - DeprecationWarni...
ERROR tests/dlt_main_loop_unit_test.py - DeprecationWarning: Due to '_pack_',...
ERROR tests/dlt_main_loop_with_dlt_client_unit_test.py - DeprecationWarning: ...
ERROR tests/dlt_message_handler_unit_test.py - DeprecationWarning: Due to '_p...
ERROR tests/dlt_message_performance_test.py - DeprecationWarning: Due to '_pa...
ERROR tests/dlt_message_unit_test.py - DeprecationWarning: Due to '_pack_', t...
!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!
============================== 12 errors in 0.47s ==============================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dlt/build; python3.14 -m pytest tests
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dlt/build; python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: tox.ini
plugins: typeguard-4.4.4
collected 119 items

tests/condition_test.py ..                                               [  1%]
tests/continuousness_helper_test.py .......                              [  7%]
tests/dlt_broker_from_file_spinner_test.py .....                         [ 11%]
tests/dlt_broker_time_test.py ..........................                 [ 33%]
tests/dlt_client_unit_test.py ..                                         [ 35%]
tests/dlt_context_handler_unit_test.py .........                         [ 42%]
tests/dlt_core_unit_test.py .....                                        [ 47%]
tests/dlt_file_spinner_unit_test.py ............                         [ 57%]
tests/dlt_filter_unit_test.py .....                                      [ 61%]
tests/dlt_main_loop_by_reading_dlt_file_unit_test.py ......              [ 66%]
tests/dlt_main_loop_unit_test.py ....                                    [ 69%]
tests/dlt_main_loop_with_dlt_client_unit_test.py ....                    [ 73%]
tests/dlt_message_handler_unit_test.py ........                          [ 79%]
tests/dlt_message_performance_test.py ...                                [ 82%]
tests/dlt_message_unit_test.py .....................                     [100%]

============================= 119 passed in 39.22s =============================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Not sure which cpack we should set...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions