Path: csiph.com!4.us.feeder.erje.net!feeder.erje.net!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: package_data in python package Date: Mon, 28 Oct 2019 15:50:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Oct 28 14:44:41 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.08 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 Dkim-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1572273865; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=kAgWZ1J3chi+jatXC/CJzj/iOg9qHQBzSuU++65i10U=; b=uULlCMeWNBmAgvHkEVN22qGnY54kGOeymyb3nMFf1MwBKl5/EgAjNVvh IGdvthWSVbvHqJ+ULcxbXbdHVHn4AQ== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1572273865; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=kAgWZ1J3chi+jatXC/CJzj/iOg9qHQBzSuU++65i10U=; b=S1lhBAia8s1EX0Sr2i+8jIckIkaOlaFP9QMBLBeIdAjogzY2hHARavKv xc2xVXoEOYJ/38BQMqZvBGE0+2kjXPMj51eh5cqMC8MEzJ27eOp/S+1m3c 37LdPhJxHd5gpudjhbKJ1/d3ecTcEYleuJ4J5Znr7uZsQ1BjZMyHGtk1WZ vKlY7Z9FfRcADz8pFIuIz0J59Z6LTABGOHSH5Bm+cfjRRXnENLaV/7ERul y6BwhHyaW3zSvgOF6YKNUoUr7a7aStGFMh0tOIpjRR6im9M8kbtwCUuyuE m0P6M3WzpRZAlGYz+2ZOv4Ymtz07/WWIsxzVaLjIbB8YiugFCqU1fQ== MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Mailing-List: archive/latest/17520 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/2505510.ydTWeorpcb@l5580 Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 28 Oct 2019 10:44:25 -0400 X-Original-Message-ID: <2505510.ydTWeorpcb@l5580> X-Original-References: <20191028142544.zlzgobcvpm3yzbvt@capeo.gueux.org> Xref: csiph.com linux.debian.maint.python:11959 On Monday, October 28, 2019 10:25:44 AM EDT F=E9lix Sipma wrote: > Hi, >=20 > 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. >=20 > I submitted an error upstream, > https://github.com/scheibler/khard/issues/231 but they can't reproduce > the problem. >=20 > 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? >=20 > Link to the patch and the source of the package: > https://sources.debian.org/src/khard/0.15.0-2/debian/patches/0003-add-kha= rd-> data-dir-to-MANIFEST.in.patch/ >=20 > Thanks for your help! It's the way setuptools works. Looking at the current upstream=20 recommendations: https://python-packaging.readthedocs.io/en/latest/non-code-files.html your solution seems correct. Scott K