[PATCH] pylibfdt: setup.py: Drop license_files

Quentin Schulz quentin.schulz at cherry.de
Fri Jul 25 17:30:59 CEST 2025


Hi Tom,

On 7/25/25 5:18 PM, Tom Rini wrote:
> On more recent versions of setuptools the warning about not being able
> to find the files specified in license_files has re-appeared. This is
> because as best I can tell, it can't and won't look in $(srctree) but
> rather only subdirectories of scripts/dtc/pylibfdt. Since we already
> provide both SPDX tags and a license field with the SPDX contents, let
> us just drop license_files as it's not mandatory.
> 

IANAL but I believe we need to ship the file, that's part of the license 
requirements for both GPL-2.0-or-later and BSD-2-Clause.

Can you try with a relative path, like ../../../ in front of Licenses?

If not enough, it's possible it's because it cannot read in parent 
directories? What if we have a symlink, does it copy the symlink or the 
target of the symlink?

Reading 
https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html, the 
license_files should then be automatically included in the sdist 
tarball, so the presence of the files in it shouldn't be an issue here.

Cheers,
Quentin


More information about the U-Boot mailing list