Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37735575
en ru br
ALT Linux repos
S:2.7.18-alt11
5.0: 2.5.4-alt5
4.1: 2.5.4-alt0.M41.1
4.0: 2.4.5-alt0.M40.1
3.0: 2.4.1-alt5

Group :: Development/Python
RPM: python

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: python-2.5.1-alt-expat.patch
Download


--- a/Python/Modules/pyexpat.c
+++ b/Python/Modules/pyexpat.c
@@ -2,7 +2,7 @@
 #include <ctype.h>
 
 #include "frameobject.h"
-#include "expat.h"
+#include <expat.h>
 
 #include "pyexpat.h"
 
--- a/Python/setup.py
+++ b/Python/setup.py
@@ -991,18 +991,12 @@ class PyBuildExt(build_ext):
         # 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'),
         ]
 
         exts.append(Extension('pyexpat',
-                              define_macros = define_macros,
-                              include_dirs = [expatinc],
-                              sources = ['pyexpat.c',
-                                         'expat/xmlparse.c',
-                                         'expat/xmlrole.c',
-                                         'expat/xmltok.c',
-                                         ],
+                              sources = ['pyexpat.c'],
+                              libraries = ['expat'],
                               ))
 
         # Fredrik Lundh's cElementTree module.  Note that this also
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin