[Distutils] Including DLLs in binary distributions
Jean-Paul Calderone
exarkun at divmod.com
Tue Jul 21 15:47:46 CEST 2009
On Tue, 21 Jul 2009 09:02:16 -0400, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>On Mon, 20 Jul 2009 20:22:41 -0400, "P.J. Eby" <pje at telecommunity.com>
> [snip]
>>
>>Use package_data instead; it should do the right thing with both distutils
>>and setuptools. (It is available in the distutils as of Python 2.4; for
>>2.3 you'd have to use setuptools.)
>
>Can package_data include files which aren't in the source tree? I naively
>tried
> package_data = {
> 'OpenSSL': ['C:/OpenSSL/ssleay32.dll',
> 'C:/OpenSSL/libeay32.dll']}
>
Hmm. Actually, I then tried various other spellings, using only relative
paths, and was unable to get these DLLs into the egg using any of them. I
wonder if I am missing something fundamental about how package_data is
interpreted.
A couple other values I tried:
package_data = {'': ['ssleay32.dll', 'libeay32.dll']}
package_data = {'OpenSSL': ['ssleay32.dll', 'libeay32.dll']}
Any tips?
Thanks,
Jean-Paul
More information about the Distutils-SIG
mailing list