[Distutils] distlib and data files => resources ?
vinay_sajip at yahoo.co.uk
Sun Nov 18 22:15:26 CET 2012
Tarek Ziadé <tarek <at> ziade.org> writes:
> and I thought I should bring up that distutils2 has implemented a way to
> define data files that can be installed in the "right" places on the
> target system. "right" here being what the linux distros decides, or the
> default win location etc.
> There is a description here:
> I think it's a better system than the data files that are located/and
> stay in the python package, maybe it would be interesting not to lose it.
I would agree that it shouldn't be lost, but there are some scenarios where data
located in packages might be desirable - perhaps, for example,
- translation files (.mo)
Particularly where these relate to plugins of some sort.
At the moment distlib functionality is lower-level than pysetup, so I haven't
looked at these issues in detail yet. However, I agree that an important element
is the mapping of logical paths to physical paths in a standardised but
extensible way which is distro packager friendly and also sensible on Windows/
More information about the Distutils-SIG