aboutcode-org / license-expression

Utility library to parse, normalize and compare License expressions for Python using a boolean logic engine. For expressions using SPDX or any other license id scheme.
http://aboutcode.org
Other
56 stars 23 forks source link

`data` subfolder not part of package manifest? #99

Open kdeldycke opened 1 month ago

kdeldycke commented 1 month ago

I am trying to make a standalone executable of my Meta Package Manager project, which depends on cyclonedx-python-lib for SBOM export, itself depending on license-expression.

For this I use Nuitka which worked well up until I introduced a dependency on license-expression.

Nuitka complains of missing data/scancode-licensedb-index.json file. I reported this issue upstream and proposed a fix so that Nuitka can automatically embed the missing file: https://github.com/Nuitka/Nuitka/pull/3033

That being said, Nuitka is generally capable of guessing which data file to include, if the Python module has been properly built and declared in package metadata. Which probably means the data subfolder has not been part of the manifest.