[Distutils] BUG: Stub loaders not created for non distutils .pyd files when using setuptools.
Jamie Kirkpatrick
jkp at kirkconsulting.co.uk
Fri Apr 20 17:15:13 CEST 2007
I haven't tried this - looks like it would be worth a go for sure.
If so then I guess it can be considered a workaround for the
"issue". Question though - how will the setuptools machinery know
what the .pyd file is called?
Jamie
On 20 Apr 2007, at 15:26, Phillip J. Eby wrote:
> At 12:26 PM 4/20/2007 +0100, Jamie Kirkpatrick wrote:
>> I hope that either my patch (or a modified version) can be
>> incorporated or someone can suggest another workaround that would fix
>> the issue allowing externally generated pyd files to have wrappers
>> auto-generated by bdist_egg.
>
> Have you tried something like this?
>
> from setuptools.command.build_ext import build_ext
> class my_build_ext(build_ext):
> def run(self): pass
>
> setup(
> cmdclass = {'build_ext':my_build_ext},
> ext_modules = [Extension(...), ....]
> }
>
> (That is, simply using a custom build_ext subclass that doesn't do
> anything... or perhaps invokes your custom build process.)
>
More information about the Distutils-SIG
mailing list