Package: src:cppimport
Version: 22.08.02-5
Severity: serious
Tags: sid forky
User: [email protected]
Usertags: pkg-resources-deprecation
fails autopkg tests with setuptools v84:
[...]
142s ------------------------------ Captured log call
-------------------------------
142s INFO root:dist.py:1044 running build_ext
142s INFO root:build_ext.py:552 building 'apackage.mymodule' extension
142s INFO compilers.C.base:base.py:1176 x86_64-linux-gnu-g++
-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC
-I/usr/lib/python3/dist-packages/pybind11/include
-I/usr/lib/python3/dist-packages/pybind11/include
-I/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage
-I/usr/include/python3.14 -c
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp
-o
/tmp/tmpw6muievg/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.o
-std=c++11
142s INFO compilers.C.base:base.py:1176 x86_64-linux-gnu-g++
-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -shared
-Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2
/tmp/tmpw6muievg/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.o
-L/usr/lib/x86_64-linux-gnu -o
/tmp/tmpw6muievg/apackage/mymodule.cpython-314-x86_64-linux-gnu.so
142s _____________________________ test_relative_import
_____________________________
142s
142s def test_relative_import():
142s import cppimport.import_hook
142s
142s cppimport.force_rebuild(True)
142s > from apackage.rel_import_tester import f
142s
142s tests/test_cppimport.py:211:
142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
142s tests/apackage/rel_import_tester.py:1: in <module>
142s from . import mymodule
142s <frozen importlib._bootstrap>:1371: in _find_and_load
142s ???
142s <frozen importlib._bootstrap>:1333: in _find_and_load_unlocked
142s ???
142s <frozen importlib._bootstrap>:1267: in _find_spec
142s ???
142s /usr/lib/python3/dist-packages/cppimport/import_hook.py:21: in
find_spec
142s cppimport.imp(fullname, opt_in=True)
142s /usr/lib/python3/dist-packages/cppimport/__init__.py:50: in imp
142s return imp_from_filepath(filepath, fullname)
142s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142s /usr/lib/python3/dist-packages/cppimport/__init__.py:87: in
imp_from_filepath
142s build_safely(filepath, module_data)
142s /usr/lib/python3/dist-packages/cppimport/importer.py:36: in
build_safely
142s template_and_build(filepath, module_data)
142s /usr/lib/python3/dist-packages/cppimport/importer.py:62: in
template_and_build
142s build_module(module_data)
142s /usr/lib/python3/dist-packages/cppimport/build_module.py:84: in
build_module
142s setuptools.setup(**setuptools_args)
142s /usr/lib/python3/dist-packages/setuptools/__init__.py:117: in setup
142s return distutils.core.setup(**attrs) # type: ignore[return-value]
142s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:168:
in setup
142s return run_commands(dist)
142s ^^^^^^^^^^^^^^^^^^
142s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184:
in run_commands
142s dist.run_commands()
142s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:1028:
in run_commands
142s self.run_command(cmd)
142s /usr/lib/python3/dist-packages/setuptools/dist.py:1106: in run_command
142s super().run_command(command)
142s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:1047:
in run_command
142s cmd_obj.run()
142s /usr/lib/python3/dist-packages/setuptools/command/build_ext.py:98:
in run
142s self.copy_extensions_to_source()
142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
142s
142s self = <cppimport.build_module.BuildImportCppExt object at
0x7f546096b110>
142s
142s def copy_extensions_to_source(self):
142s for ext in self.extensions:
142s fullname = self.get_ext_fullname(ext.name)
142s filename = self.get_ext_filename(fullname)
142s src_filename = os.path.join(self.build_lib, filename)
142s dest_filename = os.path.join(ext.libdest,
os.path.basename(filename))
142s
142s > distutils.file_util.copy_file(
142s src_filename, dest_filename, verbose=self.verbose,
dry_run=self.dry_run
142s )
142s E TypeError: copy_file() got an unexpected keyword
argument 'dry_run'
142s
142s /usr/lib/python3/dist-packages/cppimport/build_module.py:128: TypeError
142s ----------------------------- Captured stdout call
-----------------------------
142s 2026-09-10 23:48:37,194 - root - INFO - running build_ext
142s 2026-09-10 23:48:37,196 - root - INFO - building
'apackage.mymodule' extension
142s 2026-09-10 23:48:37,201 - compilers.C.base - INFO -
x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2
-Wall -fPIC -I/usr/lib/python3/dist-packages/pybind11/include
-I/usr/lib/python3/dist-packages/pybind11/include
-I/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage
-I/usr/include/python3.14 -c
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp
-o
/tmp/tmp0skl37ao/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.o
-std=c++11
142s 2026-09-10 23:48:42,687 - compilers.C.base - INFO -
x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2
-Wall -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv
-O2
/tmp/tmp0skl37ao/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.o
-L/usr/lib/x86_64-linux-gnu -o
/tmp/tmp0skl37ao/apackage/mymodule.cpython-314-x86_64-linux-gnu.so
142s ----------------------------- Captured stderr call
-----------------------------
142s In file included from
/usr/lib/python3/dist-packages/pybind11/include/pybind11/attr.h:13,
142s from
/usr/lib/python3/dist-packages/pybind11/include/pybind11/detail/class.h:12,
142s from
/usr/lib/python3/dist-packages/pybind11/include/pybind11/pybind11.h:12,
142s from
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp:4:
142s
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp:
In function ‘PyObject* PyInit_mymodule()’:
142s
/usr/lib/python3/dist-packages/pybind11/include/pybind11/detail/common.h:415:33:
warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is
deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
142s 415 | return pybind11_init();
\
142s | ~~~~~~~~~~~~~^~
142s
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp:12:1:
note: in expansion of macro ‘PYBIND11_PLUGIN’
142s 12 | PYBIND11_PLUGIN(mymodule) {
142s | ^~~~~~~~~~~~~~~
142s
/usr/lib/python3/dist-packages/pybind11/include/pybind11/detail/common.h:410:22:
note: declared here
142s 410 | static PyObject *pybind11_init();
\
142s | ^~~~~~~~~~~~~
142s
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp:12:1:
note: in expansion of macro ‘PYBIND11_PLUGIN’
142s 12 | PYBIND11_PLUGIN(mymodule) {
142s | ^~~~~~~~~~~~~~~
142s
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp:
In function ‘PyObject* pybind11_init()’:
142s
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp:13:65:
warning: ‘pybind11::module_::module_(const char*, const char*)’ is
deprecated: Use PYBIND11_MODULE or module_::create_extension_module
instead [-Wdeprecated-declarations]
142s 13 | pybind11::module m("mymodule", "auto-compiled c++
extension");
142s |
^
142s
/usr/lib/python3/dist-packages/pybind11/include/pybind11/pybind11.h:1425:14:
note: declared here
142s 1425 | explicit module_(const char *name, const char *doc =
nullptr) {
142s | ^~~~~~~
142s ------------------------------ Captured log call
-------------------------------
142s INFO root:dist.py:1044 running build_ext
142s INFO root:build_ext.py:552 building 'apackage.mymodule' extension
142s INFO compilers.C.base:base.py:1176 x86_64-linux-gnu-g++
-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC
-I/usr/lib/python3/dist-packages/pybind11/include
-I/usr/lib/python3/dist-packages/pybind11/include
-I/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage
-I/usr/include/python3.14 -c
/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.cpp
-o
/tmp/tmp0skl37ao/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.o
-std=c++11
142s INFO compilers.C.base:base.py:1176 x86_64-linux-gnu-g++
-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -shared
-Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2
/tmp/tmp0skl37ao/tmp/autopkgtest.x4Pmqg/autopkgtest_tmp/tests/apackage/.rendered.mymodule.o
-L/usr/lib/x86_64-linux-gnu -o
/tmp/tmp0skl37ao/apackage/mymodule.cpython-314-x86_64-linux-gnu.so
142s =========================== short test summary info
============================
142s FAILED tests/test_cppimport.py::test_mymodule - TypeError:
copy_file() got an...
142s FAILED tests/test_cppimport.py::test_mymodule_build - TypeError:
copy_file() ...
142s FAILED tests/test_cppimport.py::test_mymodule_from_filepath -
TypeError: copy...
142s FAILED tests/test_cppimport.py::test_package_mymodule - TypeError:
copy_file(...
142s FAILED tests/test_cppimport.py::test_inner_package_mymodule -
TypeError: copy...
142s FAILED tests/test_cppimport.py::test_with_file_in_syspath -
TypeError: copy_f...
142s FAILED tests/test_cppimport.py::test_rebuild_after_failed_compile -
TypeError...
142s FAILED tests/test_cppimport.py::test_no_rebuild_if_no_deps_change -
TypeError...
142s FAILED tests/test_cppimport.py::test_rebuild_header_after_change -
TypeError:...
142s FAILED tests/test_cppimport.py::test_raw_extensions - TypeError:
copy_file() ...
142s FAILED tests/test_cppimport.py::test_extra_sources_and_parallel -
TypeError: ...
142s FAILED tests/test_cppimport.py::test_import_hook - TypeError:
copy_file() got...
142s FAILED tests/test_cppimport.py::test_submodule_import_hook -
TypeError: copy_...
142s FAILED tests/test_cppimport.py::test_relative_import - TypeError:
copy_file()...
142s ============ 14 failed, 2 passed, 1 deselected in 76.80s (0:01:16)
=============
143s autopkgtest [23:48:43]: test unittests3: -----------------------]