`data` subfolder not part of package manifest?

Open
#99 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Inspect the package manifest and the data/scancode-licensedb-index.json path mentioned in the report. Check whether the data subfolder is included in the built distribution, then verify that a standalone Nuitka build can find the file; done means the packaged dependency includes the data file.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
74
Forks
38
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/license-expression

All issues in aboutcode-org/license-expression

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.