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')