[Distutils] Re: cygwin/mingw issues

Thomas Heller theller at python.net
Fri Apr 23 05:06:04 EDT 2004


Simon Burton <simon at arrowtheory.com> writes:

> On Fri, 23 Apr 2004 09:13:52 +0200
> Thomas Heller <theller at python.net> wrote:
>
>> I made a quick test (I normally use MSVC):
>> It seems to work with -cmingw32.  From cmd, have not tried from cygwin.
>> 
>> Although I get linker errors, probably because I don't have libpython.a
>> or how this is named.
>> 
>> Thomas
>
> thanks thomas. I'd been sitting in front of google for three days
> and needed someone to talk to. It works now! woo hoo!

Great.

Things like this can be found by setting the DISTUTILS_DEBUG env
variable to 1, in this case full tracebacks are printed.

Using my cookbook recipe in addition leaves you in the pdb debugger
after that, and you can simply inspect the current namespace, to find
that the compiler_class dictionary has a 'mingw32' entry and no 'mingw'
entry.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287

Or you use the 'setup.py build_ext --help' to find the --help-compiler
switch, and then 'setup.py build_ext --help-compiler' lists the
compilers distutils knows about.

Thomas




More information about the Distutils-SIG mailing list