On Sep 16, 2012, at 03:40 PM, Chris McDonough wrote:

>On Sun, 2012-09-16 at 15:33 -0400, Daniel Holth wrote:
>> It is because the file has a controversial coding style, with up to 25
>> lines of whitespace between classes, and includes functionality for
>> eggs and some other stuff that was unwanted on top of the resources
>> stuff that partly made its way into pkgutil.
>
>I think maybe there's also a latent notion floating around that "a
>resource (aka non-Python files) shouldn't be addressable within Python
>packages" aka. "Python should only make it easy to address Python files
>in Python packages, but no other kind of file".  I'm not sure I've ever
>seen any of the core dev team express this opinion, but I've seen it
>floating around elsewhere.

Yeah.  Personally, I think that's just silly.  It's way, way, way too
convenient to put some data files in your packages, and with pkg_resources,
there's actually a principled way to do that consistently regardless of
whether you're running from source or installed.  I'm not even sure *not*
putting your data files in your packages has any kind of common systematic
support in Python.

OTOH, it's definitely true that data files that people have to edit
(e.g. configuration files) shouldn't live in your packages.  That's just an
invitation to violate all kinds of standards (he says, painfully aware of
Mailman 2's mm_cfg.py file ;).

-Barry

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to