Hi,

I am trying to package version 0.5.1 of the asdf-coordinates-schema
package and somehow fail to include the required package data.

https://salsa.debian.org/debian-astro-team/asdf-coordinates-schemas

The package consists of a few lines Python source in
src/asdf_coordinates_schemas/, but mainly a number of resource files in
the resources subdir. They are included by pyproject.toml:

----------------------------8<-------------------------------
[tool.setuptools.package-data]
"asdf_coordinates_schemas.resources" = ["resources/**/*.yaml"]

[tool.setuptools.package-dir]
'' = "src"
"asdf_coordinates_schemas.resources" = "resources"
----------------------------8<-------------------------------

This works find upstream, and also when I build it manually with

python3 -m build --wheel --skip-dependency-check --no-isolation --outdir foo

And it works if I run a plain "debuild" as ordinary user -- all resource
files are included in the .deb.

When I build it as root, or f.e. "sudo debuild", or in cowbuilder (or on
Gitlab), the data files are not included in the .deb.
"sudo python3 -m build..." however includes them, as well as
"sudo make -f debian/rules build-indep"

Why (and how) does debuild exclude the resources if run as root and how can I
enforce them in the package?

Cheers

Ole

Reply via email to