[Distutils] Including DLLs in binary distributions
P.J. Eby
pje at telecommunity.com
Tue Jul 21 02:22:41 CEST 2009
At 05:55 PM 7/20/2009 -0400, Jean-Paul Calderone wrote:
>Hello all,
>
>I'm trying to figure out how to include some extra DLLs which are required
>by an extension module I'm trying to package (pyOpenSSL).
>
> From what I can tell, the DLLs need to be in the same directory as the
>extension modules themselves (the .pyd files). Does anyone know if this
>is the best place for them?
>
>Based on my current understanding, I've used the data_files feature of
>distutils to put the DLLs into site-packages/OpenSSL/.
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.)
More information about the Distutils-SIG
mailing list