Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13750
| Path | csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod |
|---|---|
| From | Julian Gilbey <jdg@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Installing data files with pybuild |
| Date | Wed, 01 Dec 2021 18:30:02 +0100 |
| Message-ID | <DpBAC-55f-11@gated-at.bofh.it> (permalink) |
| 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 | <julian@d-and-j.net> |
| 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 | <debian-python@lists.debian.org> archive/latest/19557 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| 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 | <YaepiHhkx254R637@d-and-j.net> |
| Xref | csiph.com linux.debian.maint.python:13750 |
Show key headers only | View raw
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
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Installing data files with pybuild Julian Gilbey <jdg@debian.org> - 2021-12-01 18:30 +0100
csiph-web