[Debichem-devel] Bug#1102770: phonopy: FTBFS: scikit_build_core._vendor.pyproject_metadata.errors.ConfigurationError: "project.license-files" must not be used when "project.license" is not a SPDX license expression
Santiago Vila
sanvila at debian.org
Sat Apr 12 17:21:03 BST 2025
Package: src:phonopy
Version: 2.38.0-1
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
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:129: Building wheel for python3.13 with "build" module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_phonopy
* Building wheel...
WARNING: Use build.verbose instead of cmake.verbose for scikit-build-core >= 0.10
/usr/lib/python3/dist-packages/scikit_build_core/_vendor/pyproject_metadata/__init__.py:293: ConfigurationWarning: Set "project.license" to an SPDX license expression for metadata >= 2.4
self.validate()
+ Exception Group Traceback (most recent call last):
| File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
| json_out["return_val"] = hook(**hook_input["kwargs"])
| ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
| File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
| return _build_backend().build_wheel(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| wheel_directory, config_settings, metadata_directory
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| )
| ^
| File "/usr/lib/python3/dist-packages/scikit_build_core/build/__init__.py", line 33, in build_wheel
| return _build_wheel_impl(
| ~~~~~~~~~~~~~~~~~^
| wheel_directory,
| ^^^^^^^^^^^^^^^^
| ...<2 lines>...
| editable=False,
| ^^^^^^^^^^^^^^^
| ).wheel_filename
| ^
| File "/usr/lib/python3/dist-packages/scikit_build_core/build/wheel.py", line 174, in _build_wheel_impl
| return _build_wheel_impl_impl(
| wheel_directory,
| ...<5 lines>...
| pyproject=pyproject,
| )
| File "/usr/lib/python3/dist-packages/scikit_build_core/build/wheel.py", line 231, in _build_wheel_impl_impl
| metadata = get_standard_metadata(pyproject, settings)
| File "/usr/lib/python3/dist-packages/scikit_build_core/build/metadata.py", line 75, in get_standard_metadata
| metadata = StandardMetadata.from_pyproject(
| new_pyproject_dict, all_errors=True, allow_extra_keys=allow_extra_keys
| )
| File "/usr/lib/python3/dist-packages/scikit_build_core/_vendor/pyproject_metadata/__init__.py", line 469, in from_pyproject
| pyproject.finalize("Failed to parse pyproject.toml")
| ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/usr/lib/python3/dist-packages/scikit_build_core/_vendor/pyproject_metadata/errors.py", line 108, in finalize
| raise ExceptionGroup(msg, self.errors)
| ExceptionGroup: Failed to parse pyproject.toml (1 sub-exception)
+-+---------------- 1 ----------------
| scikit_build_core._vendor.pyproject_metadata.errors.ConfigurationError: "project.license-files" must not be used when "project.license" is not a SPDX license expression
+------------------------------------
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_phonopy
dh_auto_build: error: pybuild --build -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202504/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:phonopy, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Debichem-devel
mailing list