Ticket #18800: py25-xml.setup.py.diff

File py25-xml.setup.py.diff, 440 bytes (added by hans.ekkehard.plesser@…, 16 years ago)

Diff extending py25-xml setup.py to delete -Wno-long-double from distutils.sysconfig configuration variables.

Line 
17c7
2< import sys, os, string
3---
4> import sys, os, string, re
558a59,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>
1366a74,75
14>     for var in ("CFLAGS", "BASECFLAGS", "PY_CFLAGS"):
15>         drop_from_config_var(var, '-Wno-long-double')