Packaging data in a single-module distribution #4139
-
Hi, I'm trying to mimic https://github.com/dougn/coverage_pth (abandonware) without the complexity of its setup.py, but I'm failing, the file I've tried multiple parameters in My latest try is available at https://github.com/rdiff-backup/rdiff-backup/pull/952/files I would interpret |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Files that are not contained by a package folder are not considered package data (they are outside of any package after all). To add a Footnotes
|
Beta Was this translation helpful? Give feedback.
Files that are not contained by a package folder are not considered package data (they are outside of any package after all).
To add a
.pth
file to a wheel it is necessary to customise the build steps (probablybdist_wheel
and/orbuild_py
, maybe others...).That is done via
setup.py
. Reminder thatsetup.py
is a perfect valid, non-deprecated1, configuration/customisation file that can be used alongside/complementary topyproject.toml
.Footnotes
The only thing that is deprecated is running this file as a CLI tool. ↩