[issue2234] cygwinccompiler.py fails for latest MinGW releases.

Jason Tishler 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:

(\d+\.\d+(\.(\d+))?([ab](\d+))?)

and it worked for both '2.18.50.20080523' & '1.2.3a'.

Additionally, it worked for the following test cases that I tried:

2.18.50a.20080523
2.18.50a 20080523
2.18.50 20080523
1.2.3

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 
future ones.

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.

Any opinions?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2234>
_______________________________________


More information about the Python-bugs-list mailing list