Message404198
Thanks Dave for closing. I would recommend in the future if you have packaging questions to bring them to packaging problems repo as indicated at https://packaging.python.org/support/#how-to-get-support.
Glad to hear that `as_file` promised to do what you need. Do be aware that it doesn't yet support a directory of files (only individual files), a known deficiency (https://github.com/python/importlib_resources/issues/228).
I don't have any good advice on separating Python and non-Python code in your package. You're right that the current interfaces for supporting package resources are specifically designed around resources in a Python package (aka package_data).
I agree that there may not be a robust way to locate "data_files". It sounds like you have a use-case that's not well served by the current implementation. I'd recommend to file a report describing a detailed minimal example of the use-case you have and what you'd like to see (in packaging-problems; maybe search if someone's already reported). One thing you'll want to answer is where do you expect these files to be installed if not in the python package?
Thanks and good luck! |
|
Date |
User |
Action |
Args |
2021-10-18 16:51:03 | jaraco | set | recipients:
+ jaraco, eric.smith, FFY00, daveraja |
2021-10-18 16:51:03 | jaraco | set | messageid: <1634575863.13.0.628144349578.issue45427@roundup.psfhosted.org> |
2021-10-18 16:51:03 | jaraco | link | issue45427 messages |
2021-10-18 16:51:03 | jaraco | create | |
|