Hi Simon!

On Mon, Jan 27, 2025 at 11:11:54AM +0100, Simon Josefsson wrote:
> Hi
> 
> Could someone help me and upstream how to get python setuptools to get
> all files installed for this package?
> 
> Please see this thread and upstream bug report:
> 
> https://github.com/wolverdude/GenSON/issues/80
> 
> I work around the problem in the debian packaging like this:
> 
> export PYBUILD_BEFORE_TEST = \
>       cp -rv {dir}/genson/schema {build_dir}/$(PYBUILD_NAME)

You can also use debian/pybuild.testfiles for that. See pybuild(1) for
details.

> However installing these files should be done by upstream setuptools
> magic somehow.  Some hint or ideally an upstream merge request to fix
> this would be appreciated...

Debian runs tests before the install phase (but after the build phase).

And the tests are run from the build directory, not from the target
installation directory. So setuptools does not copy all files there.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to