The data file in the Python module is extracted to where?

I have a Python package similar to this (smaller):

├── data
│   └── folder
│       └── file.dat
├── MANIFEST.in
└── setup.py

My settings file includes:

include_package_data = True,

Manifest the manifest as follows:

include data/folder/file.dat

When I pack the project, I have a .dat file.

Then, having the package in the package index and installing from there, it will succeed, but without the .dat file, somewhere that I can find.

I tried

eager_resources = ['data/folder/file.dat']

does not work.

What do I need to get the file.dat file extracted? Where is it extracted when a package from the package index is installed?

+4
source share

Source: https://habr.com/ru/post/1668456/


All Articles