[Distutils] First attempt: close but no data files!
kaelin at acm.org
Fri Oct 23 17:53:10 CEST 2009
On Oct 23, 2009, at 8:16 AM, P.J. Eby wrote:
> At 09:58 PM 10/22/2009 -0700, Kaelin Colclasure wrote:
>> Restructuring as a package did indeed get things working as expected.
>> It's somewhat unfortunate that this is a requirement, as it made
>> for a
>> lot of noise in my Mercurial repository and now most of my code is in
>> a module with the unhelpful name __init__.py…
> Given how short your data file is, the fact that it's entirely text,
> and the fact that your module script always needs it to be loaded, I
> wonder why you don't just make it a string constant in the .py file
> to start with, or better yet, simply directly create the data
> structure it represents.
I think you're referring to cuttlefish-config.plist, which is intended
to be edited after installation to refer to the particulars of the
installed site's filesystem, etc. [And yes, I realize having such a
config file live inside the package is sub-optimal. I'm just looking
for a low-impedence solution that works with the PyPI infrastructure.
That said, if there are "best practices" for such things established
and supported by setuptools I'm all ears…]
There is also a 'static/' directory with a bunch of webapp resources
in it. And it is now installing with the package perfectly too. Thanks
again for the helpful guidance!
More information about the Distutils-SIG