[Python] Re: Building extensions with mingw32 -- bdist_wininst fails.

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Fri Aug 8 08:35:54 EDT 2003


----- Original Message ----- 
From: "Thomas Heller" <theller at python.net>

> > OK, here's the problem.  The distutils bdist_wininst
> > script calls build (illustrated below) but does not
> > accept --compiler=mingw32.  This is obviously wrong,
> > but I'm unsure how to fix it (I'm still trying to wrap
> > my fuzzy and tired mind around the entire distutils
> > thing).
> 
> 
> There's an easy workaround.
>   python setup.py bdist_wininst --compiler=mingw32
> does *not* work.
> But this one does:
> 
>   python setup.py build --compiler=mingw32 bdist_wininst
> 
> Maybe this should be documented somewhere?
> 
> I've tried it with one of my simple extension modules at 
> least, and after hacking msvccompiler so that this one 
> isn't found any longer.

Well, whaddaya know, it works!  Thanks!

I still think the bdist*.py scripts should accept 
--compiler=mingw32 (or whatever) as a matter of 
correctness, if nothing else; but I can live with
this.  Perhaps if I get time I'll work up a patch.

Chris Gonnerman -- chris.gonnerman at newcenturycomputers.net
http://newcenturycomputers.net






More information about the Python-list mailing list