Ticket #18800: py25-xml.setup.py.diff
File py25-xml.setup.py.diff, 440 bytes (added by hans.ekkehard.plesser@…, 16 years ago) |
---|
Line | |
---|---|
1 | 7c7 |
2 | < import sys, os, string |
3 | --- |
4 | > import sys, os, string, re |
5 | 58a59,65 |
6 | > def drop_from_config_var(variable, pattern): |
7 | > '''Remove pattern from config variable''' |
8 | > v = get_config_var(variable); |
9 | > if re.search(pattern, v): |
10 | > nv = re.sub(pattern, '', v) |
11 | > get_config_vars()[variable] = nv |
12 | > |
13 | 66a74,75 |
14 | > for var in ("CFLAGS", "BASECFLAGS", "PY_CFLAGS"): |
15 | > drop_from_config_var(var, '-Wno-long-double') |