[Distutils] bundling a pre-built DLL/SO

Phillip J. Eby pje at telecommunity.com
Wed May 3 17:05:38 CEST 2006


At 12:16 PM 5/3/2006 +1000, John Pye wrote:
>Hi all,
>
>Is there a way I can use distutils to package up a binary distribution
>of a SWIG module that has already been created with another build tool?
>
>In particular, I have a .dll/.so file and a .py file, and they just need
>to be dropped in the right place, and I want to use the distutils
>'bdist_rpm' / exe builder to then create a distributable.

If the binary module is inside a package, you can treat it as package data.

Alternately, you could try subclassing 
distutils.command.build_ext.build_ext so that it runs your other build 
tool, and adding that to your custom commands dictionary in setup().



More information about the Distutils-SIG mailing list