[Stackless] Sudden error with pyexpat

Andrew Dalke dalke at dalkescientific.com
Sun Feb 10 22:31:50 CET 2008

On Feb 10, 2008, at 8:26 PM, Andreas Kostyrka wrote:
> I just wondered, how can one compile the expat library that is  
> included
> with the Python source (Modules/expat)? The directory seems to contain
> only headers and sources, but no automatic or manual build  
> instructions.

Let Python do it for you.  It's part of the normal module build system.

Look in setup.py in the source distribution.

         expatinc = os.path.join(os.getcwd(), srcdir, 'Modules',  
         define_macros = [
             ('HAVE_EXPAT_CONFIG_H', '1'),

                               define_macros = define_macros,
                               include_dirs = [expatinc],
                               sources = ['pyexpat.c',


				dalke at dalkescientific.com

More information about the Stackless mailing list