cygwin+python+XML?

Jason Tishler jason at tishler.net
Wed Sep 12 11:28:37 EDT 2001


Alex,

On Wed, Sep 12, 2001 at 01:06:43PM +0200, Alex Martelli wrote:
> Has anybody managed to build expat (1.95.2 is the latest
> release I can see on Sourceforge -- the zip I saw on the
> expat's site itself seems to be a Win/VC++ only install?)

Yes, but see below...

> [snip]
>
> but I was hoping to avoid having to patch the expat sources.

AFAICT, the attached tiny patch is necessary.  With this patch, expat
built cleanly for me.  However, since a regression test is not supplied,
I don't know whether or not Cygwin expat works properly.

Please apply the attached patch to your source and build.  If expat
functions as expected, then I encourage you to submit it to expat CVS
for consideration.  Sorry, but I don't use XML (right now) so I don't
have the motivation to pursue this further.

> I do have a full working Python 2.1.1 for Win32/VC++6 on
> the same disk where I'm trying to set up the Cygwin version,
> in case any piece can be copied and reused (...but I sort
> of doubt it...).  I just wanted to set up the cygwin
> version too because sometimes I get help requests about
> it, and it would be nice to have a complete working version
> of Python -- complete with XML processing, Tkinter and
> all -- on the cygwin side to answer such requests!

See the follow for a way to build Cygwin Tkinter:

    http://www.vso.cape.com/~nhv/files/python/tinker.html

Jason
-------------- next part --------------
--- expat.h.in.orig	Wed Sep 12 11:13:32 2001
+++ expat.h.in	Wed Sep 12 11:13:49 2001
@@ -9,7 +9,7 @@ See the file COPYING for copying permiss
 #include <stdlib.h>
 
 #ifndef XMLPARSEAPI
-#  if defined(__declspec) && !defined(__BEOS__)
+#  if defined(__declspec) && !defined(__BEOS__) && !defined(__CYGWIN__)
 #    define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl
 #  else
 #    define XMLPARSEAPI(type) type


More information about the Python-list mailing list