Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Julian Gilbey Newsgroups: linux.debian.maint.python Subject: Installing data files with pybuild Date: Wed, 01 Dec 2021 18:30:02 +0100 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Dec 1 17:23:34 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.851 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 1534 seconds by postgrey-1.36 at bendel; Wed, 01 Dec 2021 17:23:21 UTC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: archive/latest/19557 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/YaepiHhkx254R637@d-and-j.net Approved: robomod@news.nic.it Lines: 37 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 1 Dec 2021 16:57:44 +0000 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:13750 Hello! pybuild is magic. It knows where the build directory is, despite it seemingly calling setup.py with no command line arguments specifying it! But anyway, my actual question is this. How do I ensure that the data files are also copied into the package? My package has a source tree that looks roughly like this: setup.py setup.cfg MANIFEST.in ... debian/ mypkg/ __init__.py module1.py imgs/ img1.png img2.png data/ data.csv data2.txt module2/ __init__.py foo.py module2_data.txt Only the .py files are currently included in the build; what is the best way to include all of the data files after the build step and before the test step, and then to ensure they are included in the final package? Thanks! Julian