[issue2445] Use The CygwinCCompiler Under Cygwin

Jeevan Varshney report at bugs.python.org
Mon May 19 09:48:44 CEST 2008


Jeevan Varshney <jvarshney at yahoo.com> added the comment:

The following will also let environment variables be passed to the
CygwinCCompiler.

--- orig/sysconfig.py	2008-05-19 00:26:03.953125000 -0700
+++ copy/sysconfig.py	2008-05-19 00:14:51.609375000 -0700
@@ -145,7 +145,7 @@
     Mainly needed on Unix, so we can plug in the information that
     varies across Unices and is stored in Python's Makefile.
     """
-    if compiler.compiler_type == "unix":
+    if compiler.compiler_type in ("unix", "cygwin"):
         (cc, cxx, opt, cflags, ccshared, ldshared, so_ext) = \
             get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
                             'CCSHARED', 'LDSHARED', 'SO')

----------
nosy: +jayvee

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2445>
__________________________________


More information about the Python-bugs-list mailing list