[Distutils] bundling a pre-built DLL/SO
John Pye
john.pye at student.unsw.edu.au
Wed May 3 18:58:11 CEST 2006
Hi Philip,
Phillip J. Eby wrote:
> At 12:16 PM 5/3/2006 +1000, John Pye wrote:
>
>> 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.
I'm concerned that if I treat it as package data, it won't get put in
the right place in all cases.
>
> 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().
That's an interesting idea -- have you heard of anyone doing this with
SCons?
Cheers
JP
More information about the Distutils-SIG
mailing list