summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-03 00:44:30 (GMT)
committerGreg Ward <gward@python.net>2000-06-03 00:44:30 (GMT)
commit82d71cacb06c6118783cd3699403c2ec320d14b5 (patch)
tree93f71f92f3b132ba4ab28e1e4d468505dabc94c5
parent60f157d5e32291b03c2aff372880a65fd8d6d7ca (diff)
downloadcpython-82d71cacb06c6118783cd3699403c2ec320d14b5.zip
cpython-82d71cacb06c6118783cd3699403c2ec320d14b5.tar.gz
cpython-82d71cacb06c6118783cd3699403c2ec320d14b5.tar.bz2
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.
-rw-r--r--Lib/distutils/sysconfig.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index a5f3816..53da482 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -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"""