[issue2234] cygwinccompiler.py fails for latest MinGW releases.
report at bugs.python.org
Thu Jun 12 21:06:33 CEST 2008
Jason Tishler <jason at tishler.net> added the comment:
I tested the regular expression in #3:
and it worked for both '18.104.22.16880523' & '1.2.3a'.
Additionally, it worked for the following test cases that I tried:
Unfortunately, I don't know what is the set of all possible version
formats that "ld -v" can return. So, I don't know how to devise a
regular expression guaranteed to work for all ld versions including
AFAICT, we have only two options to resolve this issue:
1. Improve the regular expression as best we can and continue to
change it as necessary in the future.
2. Remove the fragile version checking all together and make an
explicit decision to only support modern binutils.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list