#20097 Python packaging: Resources not included in wheel
Issue created by
StefanUlbrich
Describe the bug
When packaging a python library with external resources (e.g., config files, templates, etc.), the resources will not end up in the wheel/tgz file (iff the resources are not in a subfolder of the python sources). When building an executable (.pex) instead, the resources are available. Whether the resource is declared as a dependency of the sources or the distribution does not matter.
The solution is therefore to copy all resources into the source folder.
Pants version
2.16.rc2 and 2.17.0
OS
Only tested on MacOS
Additional info
A Minimal example is provided in
this repository (problem shown in the
main
branch, solution on the
working
branch).
pantsbuild/pants