[Distutils] bundling a pre-built DLL/SO
Phillip J. Eby
pje at telecommunity.com
Wed May 3 19:15:17 CEST 2006
At 02:58 AM 5/4/2006 +1000, John Pye wrote:
>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.
If you treat it as *package* data, it will be in the right place. See:
http://python.org/doc/2.4.1/dist/node11.html
> > 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?
No. See:
http://python.org/doc/2.4.1/dist/node29.html
for instructions on how to integrate your custom commands.
More information about the Distutils-SIG
mailing list