python: add patches from archlinux for internal modules.

Add missing db dependency, bump revision.

--HG--
extra : convert_revision : 6366bfde6a37f01d401fb393e98b47aae95ef878
This commit is contained in:
Juan RP 2009-10-16 16:53:38 +02:00
parent 7f9e6dfaa6
commit 1b55b53729
5 changed files with 197 additions and 1 deletions

View file

@ -0,0 +1,33 @@
--- setup.py 2008-04-22 12:12:24.613554757 +0300
+++ setup.py 2008-04-22 12:13:09.276544063 +0300
@@ -1035,18 +1035,15 @@
#
# More information on Expat can be found at www.libexpat.org.
#
- expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
- define_macros = [
- ('HAVE_EXPAT_CONFIG_H', '1'),
- ]
+ # Use system expat
+ expatinc = '/usr/include'
+ define_macros = []
exts.append(Extension('pyexpat',
define_macros = define_macros,
include_dirs = [expatinc],
+ libraries = ['expat'],
sources = ['pyexpat.c',
- 'expat/xmlparse.c',
- 'expat/xmlrole.c',
- 'expat/xmltok.c',
],
))
@@ -1058,6 +1055,7 @@
exts.append(Extension('_elementtree',
define_macros = define_macros,
include_dirs = [expatinc],
+ libraries = ['expat'],
sources = ['_elementtree.c'],
))