Fix from Jack Jansen for the Mac and the Metrowerks compiler, posted
to the Distutils-SIG and archived at
http://mail.python.org/pipermail/distutils-sig/2000-November/001755.html
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index b10ee67..53901b3 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -838,6 +838,7 @@
# that platform.
default_compiler = { 'posix': 'unix',
'nt': 'msvc',
+ 'mac': 'mwerks',
}
# Map compiler types to (module_name, class_name) pairs -- ie. where to
@@ -853,6 +854,8 @@
"Mingw32 port of GNU C Compiler for Win32"),
'bcpp': ('bcppcompiler', 'BCPPCompiler',
"Borland C++ Compiler"),
+ 'mwerks': ('mwerkscompiler', 'MWerksCompiler',
+ "MetroWerks CodeWarrior"),
}
def show_compilers():