]> granicus.if.org Git - python/commitdiff
Added a bunch of new globals in '_init_mac()' -- these will be needed to
authorGreg Ward <gward@python.net>
Sat, 3 Jun 2000 00:44:30 +0000 (00:44 +0000)
committerGreg Ward <gward@python.net>
Sat, 3 Jun 2000 00:44:30 +0000 (00:44 +0000)
  support the forthcoming Cygwin/Mingw32 GCC-on-Windows patch.
Standardized CVS id line.

Lib/distutils/sysconfig.py

index a5f3816a163f5b118f8f0c69fc8240ce6824a35b..53da48264e0b5d00753cad918c4951ac462a58e6 100644 (file)
@@ -6,7 +6,7 @@ Email:        <fdrake@acm.org>
 Initial date: 17-Dec-1998
 """
 
-__version__ = "$Revision$"
+__revision__ = "$Id$"
 
 import os
 import re
@@ -255,6 +255,20 @@ def _init_nt():
     g['SO'] = '.pyd'
     g['exec_prefix'] = EXEC_PREFIX
 
+    # These are needed for the CygwinCCompiler and Mingw32CCompiler
+    # classes, which are just UnixCCompiler classes that happen to work on
+    # Windows.  UnixCCompiler expects to find these values in sysconfig, so
+    # here they are.  The fact that other Windows compilers don't need
+    # these values is pure luck (hmmm).
+    g['CC'] = "cc"                      # not gcc?
+    g['RANLIB'] = "ranlib"
+    g['AR'] = "ar"
+    g['OPT'] = "-O2"
+    g['SO'] = ".pyd"
+    g['LDSHARED'] = "ld"
+    g['CCSHARED'] = ""
+    g['EXE'] = ".exe"
+
 
 def _init_mac():
     """Initialize the module as appropriate for Macintosh systems"""