updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python26 / python-2.6-internal-expat.patch
blob86252abef00270c8aa2dec68514a87f0dd1753f5
1 --- setup.py 2008-04-22 12:12:24.613554757 +0300
2 +++ setup.py 2008-04-22 12:13:09.276544063 +0300
3 @@ -1035,18 +1035,15 @@
5 # More information on Expat can be found at www.libexpat.org.
7 - expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
8 - define_macros = [
9 - ('HAVE_EXPAT_CONFIG_H', '1'),
10 - ]
11 + # Use system expat
12 + expatinc = '/usr/include'
13 + define_macros = []
15 exts.append(Extension('pyexpat',
16 define_macros = define_macros,
17 include_dirs = [expatinc],
18 + libraries = ['expat'],
19 sources = ['pyexpat.c',
20 - 'expat/xmlparse.c',
21 - 'expat/xmlrole.c',
22 - 'expat/xmltok.c',
26 @@ -1058,6 +1055,7 @@
27 exts.append(Extension('_elementtree',
28 define_macros = define_macros,
29 include_dirs = [expatinc],
30 + libraries = ['expat'],
31 sources = ['_elementtree.c'],