]> granicus.if.org Git - python/commit
Patch #718551: cygwinccompiler.get_versions() patch
authorJason Tishler <jason@tishler.net>
Wed, 9 Apr 2003 20:13:59 +0000 (20:13 +0000)
committerJason Tishler <jason@tishler.net>
Wed, 9 Apr 2003 20:13:59 +0000 (20:13 +0000)
commitdcae0dc4ed77ca6a46a571a18ce57696df5566ec
tree8383fef07e41a501093d36e7270b1de07e5aa78b
parent11d204ca277a3991c429169eff2e9ef0b02b9c35
Patch #718551: cygwinccompiler.get_versions() patch

The cygwinccompiler.get_versions() function only handles versions numbers of
the form "x.y.z".  The attached patch enhances get_versions() to handle "x.y"
too (i.e., the ".z" is optional).

This change causes the unnecessary "--entry _DllMain@12" link option to be
suppressed for recent Cygwin and Mingw toolchains. Additionally, it directs
recent Mingw toolchains to use gcc instead of dllwrap during linking.
Lib/distutils/cygwinccompiler.py