[Zope3-dev] Re: More thoughts on packaging
Fred Drake
fred at zope.com
Tue Feb 17 17:18:56 EST 2004
At 12:28 PM 2/17/04 +1100, Richard Jones wrote:
> It has a data_files option (see section 3.5 of the distutils manual)
> which lists data files to install in subdirs of the install prefix. So
> in Roundup, I specify things like:
...
>Or were you thinking of something else?
On Monday 16 February 2004 10:29 pm, Phillip J. Eby wrote:
> Data files that need to be installed *in* the package directory, ala
> ZConfig 'component.xml' files.
>
> Personally, I use the following subclass of install_data:
...
[...something that modifies install_data to install package data...]
...
> There probably needs to be a different way to address this than the one
> I'm using, though, because changing install_data to do what I do would
> clearly break yours and other people's code who are using install_data
> to install non-package files.
I think of what distutils currently does with data_files makes sense for
what I'd call "application data," but not for data that's tightly bound to
code (like ZConfig schema components). (Yes, that leaves a very loose idea
of what application data is, which is fine.) I think distutils needs to
grow a way to deal with package data; the application data support doesn't
need to change (at least not as a side-effect of this).
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation
More information about the Zope3-dev
mailing list