Package: src:scikit-build
Version: 0.18.1-6
Severity: serious
Tags: sid forky
User: [email protected]
Usertags: pkg-resources-deprecation

scikit-build fails autopkg tests with setuptools v84:

[...]

120s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
120s
120s self = <skbuild.command.build_ext.build_ext object at 0x7fc650a8ee90>
120s
120s     def copy_extensions_to_source(self) -> None:
120s         """This function is only-called when doing inplace build.
120s
120s It is customized to ensure the extensions compiled using distutils 120s are copied back to the source tree instead of the :func:`skbuild.constants.CMAKE_INSTALL_DIR()`.
120s         """
120s         build_py = self.get_finalized_command("build_py")
120s         for ext in self.extensions:
120s             fullname: str = self.get_ext_fullname(ext.name)
120s filename: str = self.get_ext_filename(fullname) # type: ignore[no-untyped-call]
120s             modpath = fullname.split(".")
120s             package = ".".join(modpath[:-1])
120s package_dir = build_py.get_package_dir(package) # type: ignore[attr-defined]
120s             # skbuild: strip install dir for inplace build
120s             package_dir = package_dir[len(CMAKE_INSTALL_DIR()) + 1 :]
120s dest_filename = os.path.join(package_dir, os.path.basename(filename))
120s             src_filename = os.path.join(self.build_lib, filename)
120s
120s # Always copy, even if source is older than destination, to ensure 120s # that the right extensions for the current Python/platform are
120s             # used.
120s > copy_file(src_filename, dest_filename, verbose=self.verbose, dry_run=self.dry_run) # type: ignore[attr-defined] 120s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 120s E TypeError: copy_file() got an unexpected keyword argument 'dry_run'
120s
120s build_py = <skbuild.command.build_py.build_py object at 0x7fc6509c9150>
120s dest_filename = 'hello/_hello_ext.cpython-314-x86_64-linux-gnu.so'
120s ext = Extension(name='hello._hello_ext', sources=['hello/_hello_ext.cxx'], include_dirs=[], define_macros=[], undef_macros=[...=[], extra_link_args=[], export_symbols=['PyInit__hello_ext'], swig_opts=[], depends=[], language=None, optional=False)
120s filename   = 'hello/_hello_ext.cpython-314-x86_64-linux-gnu.so'
120s fullname   = 'hello._hello_ext'
120s modpath    = ['hello', '_hello_ext']
120s package    = 'hello'
120s package_dir = 'hello'
120s self = <skbuild.command.build_ext.build_ext object at 0x7fc650a8ee90> 120s src_filename = '_skbuild/linux-x86_64-3.14/setuptools/lib.linux-x86_64-cpython-314/hello/_hello_ext.cpython-314-x86_64-linux-gnu.so'
120s
120s /usr/lib/python3/dist-packages/skbuild/command/build_ext.py:38: TypeError

Reply via email to