The code dealing with the new resources subsystem used to be called datafiles (module distutils2.datafiles, file dist-info/DATAFILES, etc.). I believe it is a better name and we should use it again: - it would make clear that it’s an evolution of distutils’ data_files - it would make clear that it’s related to install_data and data_files “resources” is overly vague and ambiguous. It can refer to natural resources, computer resources, links to more information, etc. “data files” is less vague and less abstract: it refers to files that are not modules, scripts or C files.
MvL also thought the “resources” term to be non-obvious: http://mail.python.org/pipermail/python-dev/2006-April/063966.html Other people mentioned its prior use within the Mac, the X system or Web frameworks. Someone mentioned “assets” in the game industry (also vague in my opinion). One con for “data” is that people may think it refers to files created by a program in the user home directory. After reading this, I’m -0 rather than -1 on “resources”, and +0.5 on “data files”. Whatever we decide, I strongly think all the code should use only one name (install_xxx command, dist.xxx attribute, dist-info/XXX file, etc.).
Sounds reasonable to me. (is it normal that there's no online help for it: $ ./python -m pydoc packaging.resources no Python documentation found for 'packaging.resources' )
The resources subsystem has code in the install_data command, the p7g.database module and internal classes. There used to be a p7g.resources module but it was merged into database because it contained only a few lines.
Regarding reST docs, there’s a good bit in packaging/setupcfg and I have plans to explain it more (what it does, how it works with sysconfig.cfg, how it obsoletes package_data, how to use it and keep compat with distutils).
History
Date
User
Action
Args
2022-04-11 14:57:23
admin
set
github: 57617
2014-03-13 02:33:30
eric.araujo
set
status: open -> closedresolution: out of datestage: resolved
2011-12-06 15:39:08
eric.araujo
set
messages: +
2011-12-06 15:37:07
eric.araujo
set
messages: + title: Rename packaging.resources back to datafiles -> Rename the packaging “resources” concept back to “data files”