[Distutils] Installing (data-)files in package directories

Thomas Heller theller at python.net
Wed Nov 19 15:41:11 EST 2003


Bob Ippolito <bob at redivi.com> writes:

> On Nov 19, 2003, at 3:06 PM, Thomas Heller wrote:
>
>> It seems installing data-files in package directories is a common
>> requirement - at least for me.
>
> Me too
>
>> Readme files, data files needed by the packages - the bdist_wininst.exe
>> file is such an example.  It needs to be in the same directory as the
>> distutils.command.bdist_wininst module.
>>
>> So here is a build_py subclass (contained in a setup script) which does
>> this. Any comments?
>
> It's also often necessary to recursively include data files and
> preserve symlinks, especially on OS X.  I'm currently using a
> (modified?) version of Rene Liebscher's "install_data" setup
> extensions.  I believe I borrowed them from PyXML, but I'm not quite
> sure.

Ah yes, this looks quite nice (I'm looking into PyXML-0.8.3.tar.gz).
And the trick is to reuse distutils' useless (?) install_data command
;-).

Thanks,

Thomas




More information about the Distutils-SIG mailing list