summaryrefslogtreecommitdiffstats
path: root/base/python/python-internal-expat.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-03-05 20:37:31 +0100
committertnut <thierryn1 at hispeed dot ch>2011-03-05 20:37:31 +0100
commit816c523ef460a710f709a1d8e6d5d68545ff651d (patch)
treea4ddb01bedd93b7686aaa35758eeea5ab85dba59 /base/python/python-internal-expat.patch
parenta74f72a367f6f02784a20e79b780e096da7e5b06 (diff)
downloadnutyx-pakxe-816c523ef460a710f709a1d8e6d5d68545ff651d.tar.gz
nutyx-pakxe-816c523ef460a710f709a1d8e6d5d68545ff651d.tar.bz2
nutyx-pakxe-816c523ef460a710f709a1d8e6d5d68545ff651d.tar.xz
nutyx-pakxe-816c523ef460a710f709a1d8e6d5d68545ff651d.zip
python pas de dépendances
Diffstat (limited to 'base/python/python-internal-expat.patch')
-rw-r--r--base/python/python-internal-expat.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/base/python/python-internal-expat.patch b/base/python/python-internal-expat.patch
new file mode 100644
index 000000000..b1b17f01d
--- /dev/null
+++ b/base/python/python-internal-expat.patch
@@ -0,0 +1,33 @@
+--- setup.py 2010-11-26 06:56:26.000000000 -0500
++++ setup.py 2010-11-29 07:51:25.000000031 -0500
+@@ -1227,18 +1227,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',
+ ],
+ ))
+
+@@ -1250,6 +1247,7 @@
+ exts.append(Extension('_elementtree',
+ define_macros = define_macros,
+ include_dirs = [expatinc],
++ libraries = ['expat'],
+ sources = ['_elementtree.c'],
+ ))
+ else: