[Distutils] Re: CygwinCCompiler, msvc hack, BCPPCompiler

Greg Ward gward@python.net
Thu, 29 Jun 2000 19:16:50 -0400

On 29 June 2000, Norman Vine said:
> I compile Python with Cygwin routinely and I do not have "__GNUC__"
> anywhere in my config.h file
> >>> sys.version
> '1.6a2 (#12, Jun 22 2000, 08:18:57)  [GCC 2.95.2 19991024 (release-2)]'
> perhaps checking for "GCC" in sys.version will do what we want :-))

No; as I understand it, the CygwinCCompiler class will allow you to
build extensions using GCC (Cygwin or MingW32!) with the stock Python
binary, as long as you have a libpython.a around.  (It also requires
changes to Python's config.h, but I believe Fred checked those in a few
days ago.)

This is a big win: let Guido's employer shell out for MSVC++, but you
can use a free compiler to build extensions for Windows without having
to build Python yourself.

Greg Ward - geek-on-the-loose                           gward@python.net
A closed mouth gathers no foot.