[Distutils] changing default compiler

Enrico Sirola enrico.sirola@riskmap.net
Wed Feb 7 13:21:52 2001


Hello,
i wrote a C++ extention module, but distutils keep trying to compile
it as a plain C interface one. Is t possible it's confused by my
strange platform name?

from sys import platform
print platform

gives out 

linux2

This is prolly non standard, but maybe it's becouse i'm using a beta
distro (progeny debian)...
Anyway everithing works if i run compiler commands by hand (changing
gcc to g++) and finally type "python setup.py install". 
So, how can i force distutils to use g++ instead of gcc?
Thanks a lot in advance,
Enrico