ResourceManager for Non-Package Data Files is not working as described in the documentation #1385
Comments
Hi @NomAnor . Thanks for writing. You're right - the docs are stale. That recommendation is no longer supported by the packaging ecosystem. |
jaraco
added a commit
that referenced
this issue
Jun 2, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to install a data file which is in my repository root when installing my package. I don't want to install it in a specific directory. It's a list of contributors which is loaded by an about dialog. So this file is not a package data file.
My setup.py:
The file is installed in
$prefix/share/myproject
. The actual path is irrelevant for me.The documentation tells me:
This returns a path relative to the
site-packages
directory. When installed in developer mode withpip install --user -e .
this is relative to thesrc
directory (from thefind_packages
call?). Both paths are not pointing to the correct file as they should if the documentation is correct.If the
data_file
option is a supported feature then either the documentation is wrong or the ResourceManager is using the wrong path. If this is not supported any more then it needs to be removed from the documentation.The text was updated successfully, but these errors were encountered: