--- setup.py 2010-07-17 08:31:09.000000000 -0400 +++ setup.py 2010-11-08 13:36:35.623000055 -0500 @@ -1304,18 +1304,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', ], )) @@ -1327,6 +1324,7 @@ exts.append(Extension('_elementtree', define_macros = define_macros, include_dirs = [expatinc], + libraries = ['expat'], sources = ['_elementtree.c'], )) else: