Python Forum
Including data files in a package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Including data files in a package
#3
(Oct-24-2021, 09:11 PM)snippsat Wrote: Look at Configuring setup() using setup.cfg files
The above states the following without any explanation of what the elements are:
[options.data_files]
/etc/my_package =
site.d/00_default.conf
host.d/00_default.conf
data = data/img/logo.png, data/svg/icon.svg
fonts = data/fonts/*.ttf, data/fonts/*.otf

I've no idea what site.d... or host.d... mean. I imagine that the line starting data means create a directory called "data" and copy the following files into it. I'll try:
[options.data_files]
data = reference.dat, help.html
Reply


Messages In This Thread
RE: Including data files in a package - by snippsat - Oct-24-2021, 09:11 PM
RE: Including data files in a package - by ChrisOfBristol - Oct-25-2021, 06:44 PM
RE: Including data files in a package - by snippsat - Oct-25-2021, 08:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to extract 1 or 2 bits of data from MS project files? cubangt 8 1,127 Feb-16-2024, 12:02 AM
Last Post: deanhystad
  Function to count words in a list up to and including Sam Oldman45 15 6,777 Sep-08-2023, 01:10 PM
Last Post: Pedroski55
  script to calculate data in csv-files ledgreve 0 1,143 May-19-2023, 07:24 AM
Last Post: ledgreve
  python move specific files from source to destination including duplicates mg24 3 1,141 Jan-21-2023, 04:21 AM
Last Post: deanhystad
  SQL Alchemy help to extract sql data into csv files mg24 1 1,842 Sep-30-2022, 04:43 PM
Last Post: Larz60+
  Apply textual data cleaning to several CSV files ErcoleL99 0 864 Jul-09-2022, 03:01 PM
Last Post: ErcoleL99
  PyPI package and files ChrisOfBristol 4 2,165 Oct-23-2021, 09:17 PM
Last Post: snippsat
  Not including a constructor __init__ in the class definition... bytecrunch 3 12,129 Sep-02-2021, 04:40 AM
Last Post: deanhystad
  Plotting sum of data files using simple code Laplace12 3 3,093 Jun-16-2021, 02:06 PM
Last Post: BashBedlam
  how to create pythonic codes including for loop and if statement? aupres 1 1,952 Jan-02-2021, 06:10 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020