Added a bunch of new globals in '_init_mac()' -- these will be needed to

support the forthcoming Cygwin/Mingw32 GCC-on-Windows patch.
Standardized CVS id line.
This commit is contained in:
Greg Ward 2000-06-03 00:44:30 +00:00
parent 60f157d5e3
commit 82d71cacb0
1 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,7 @@ Email: <fdrake@acm.org>
Initial date: 17-Dec-1998 Initial date: 17-Dec-1998
""" """
__version__ = "$Revision$" __revision__ = "$Id$"
import os import os
import re import re
@ -255,6 +255,20 @@ def _init_nt():
g['SO'] = '.pyd' g['SO'] = '.pyd'
g['exec_prefix'] = EXEC_PREFIX 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(): def _init_mac():
"""Initialize the module as appropriate for Macintosh systems""" """Initialize the module as appropriate for Macintosh systems"""