On Monday, October 28, 2019 10:25:44 AM EDT Félix Sipma wrote: > Hi, > > I have a problem with package_data files in a package ("khard", which is > not currently under the debian-python umbrella but it is on my todo list > to transfer it, I just didn't find the time yet) not getting installed. > > I submitted an error upstream, > https://github.com/scheibler/khard/issues/231 but they can't reproduce > the problem. > > I "fixed" the issue by adding a patch to add "khard/data/" to > MANIFEST.in (with "recursive-include khard/data/ *"), but I don't get > why this directory doesn't get installed by default... Is it because of > a limitation of dh-python? Have I forgot an option somewhere? > > Link to the patch and the source of the package: > https://sources.debian.org/src/khard/0.15.0-2/debian/patches/0003-add-khard-> > data-dir-to-MANIFEST.in.patch/ > > Thanks for your help!
It's the way setuptools works. Looking at the current upstream recommendations: https://python-packaging.readthedocs.io/en/latest/non-code-files.html your solution seems correct. Scott K