po-files included but not specified as data files #4120
-
I try to understand why po-files are included and installed in my package but I did not specified them as data files. I have a custom build step that do use "msgfmt" to compile the po-files into mo-files. This seems to work. And this mo-files are specified as data-files and they are included. The original project is a technical demo and can be found here. That is the original tree:
That is the
Here is some verbose output from
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I suspect this is probably because When we were designing the support for I recently updated the https://setuptools.pypa.io/en/latest/userguide/datafiles.html docs to make this more evident. I hope that helps. |
Beta Was this translation helpful? Give feedback.
I suspect this is probably because
tool.setuptools.include-package-data
default value inpyproject.toml
is true. Isn't it the case?When we were designing the support for
pyproject.toml
the feedback we received is that it was better to change the default ofinclude-package-data
to True because that is what most beginners would expect.This and other changes in behaviour were made in order to steer the usage of
pyproject.toml
towards "convention over configuration".I recently updated the https://setuptools.pypa.io/en/latest/userguide/datafiles.html docs to make this more evident. I hope that helps.