Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13750

Installing data files with pybuild

From Julian Gilbey <jdg@debian.org>
Newsgroups linux.debian.maint.python
Subject Installing data files with pybuild
Date 2021-12-01 18:30 +0100
Message-ID <DpBAC-55f-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | 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


Thread

Installing data files with pybuild Julian Gilbey <jdg@debian.org> - 2021-12-01 18:30 +0100

csiph-web