1. --- setup.py    2010-07-17 08:31:09.000000000 -0400
  2. +++ setup.py    2010-11-08 13:36:35.623000055 -0500
  3. @@ -1304,18 +1304,15 @@
  4.          #
  5.          # More information on Expat can be found at www.libexpat.org.
  6.          #
  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 = []
  14.  
  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',
  23.                                           ],
  24.                                ))
  25.  
  26. @@ -1327,6 +1324,7 @@
  27.              exts.append(Extension('_elementtree',
  28.                                    define_macros = define_macros,
  29.                                    include_dirs = [expatinc],
  30. +                                  libraries = ['expat'],
  31.                                    sources = ['_elementtree.c'],
  32.                                    ))
  33.          else: