[Distutils] gcc is hardcoded in mingw32/cygwin compiler

Phillip J. Eby pje at telecommunity.com
Tue Oct 19 17:50:19 CEST 2004

At 10:38 AM 10/19/04 +0200, Bastian Kleineidam wrote:
>when playing with cross compiling, I noticed that "gcc" is hardcoded
>in the mingw32 and cygwin compiler classes.
>I'd like them to be adjustable with environment variables CC, CXX etc.
>like in the unixccompiler.py class.
>I attached a patch that works for me(tm), but there might be a better
>way using already existing methods in sysconfig.py.
>The command line I use under linux for bdist_wininst is:
>CC=/usr/bin/i586-mingw32msvc-gcc \
>   CCSHARED=/usr/bin/i586-mingw32msvc-gcc \
>   CXX=/usr/bin/i586-mingw32msvc-g++ \
>   LDSHARED="/usr/bin/i586-mingw32msvc-gcc -shared" \
>   $(PYTHON) setup.py build -c mingw32 bdist_wininst

Sorry about this off-topic question, but are you actually successful in 
building bdist_wininst from Linux this way?  And if so, how do you 
install/setup the compiler(s)?  I'd love to be able to generate "daily 
builds" of my software on Linux, targeting bdist_wininst as well as sdist.

More information about the Distutils-SIG mailing list