I have uploaded version 0.5 of Sab-pyth, the Python interface for
the Sablotron XSL processor to our website at:

http://www.ubka.uni-karlsruhe.de/~guenter/Sab-pyth/

I have created a setup.py so this can be built and installed with

python setup.py build
sudo python setup.py install

on Unix.  I have also tried to build this on windows (same build command
as above, but I failed miserably doing this.  There are several issues
with building on win and I would be glad to here from anybody who wishes
to try this.

1. You have to put the include files and libraries some place setup.py
finds them.  I chose to put the Sablotron libs and includes in the
Python directory.  Unfortunately, in Python 2.0, expat is included and I
have no idea if the version of Expat that comes with Python is
compatible with the one that comes with the win binary for Sablotron. 
The .lib file of Python expat is almost double the size of the .lib file
(was this xmlparse.lib?  what about xmltok?) from Sablotron Expat.

2. I get really strange compilation errors when calling "setup.py
build".  The messages are in german (we only got the discount on the
german version of the compiler :-(  ) and I have no idea what they mean.
Maybe there are leftovers from previous Python versions are causing this
but I don't know what to do...  If you try, please tell me what happens
to you.  I am using VC++ version 5 which is OK according to the
Python2.0 documentation.  The problems seem to be related to the Python
headers/interfaces, not to Sablotron.  The messages are as follows:

--------------------
running build
running build_ext
building 'Sablot' extension
creating build
creating build\temp.win32-2.0
creating build\temp.win32-2.0\Release
C:\Programme\DevStudio\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX -IC:\PYTHON20\In
clude /TcHandlers.c /Fobuild\temp.win32-2.0\Release\Handlers.obj
Handlers.c
C:\Programme\DevStudio\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX -IC:\PYTHON20\In
clude /TcProcessor.c /Fobuild\temp.win32-2.0\Release\Processor.obj
Processor.c
Processor.c(379) : error C2099: Initialisierung ist keine Konstante
Processor.c(381) : warning C4047: 'initializing' : Anzahl der Dereferenzierungen
 bei 'int ' und 'char [19]' unterschiedlich
Processor.c(382) : warning C4047: 'initializing' : Anzahl der Dereferenzierungen
 bei 'char *' und 'unsigned int ' unterschiedlich
Processor.c(385) : warning C4047: 'initializing' : Anzahl der Dereferenzierungen
 bei 'int ' und 'void (__cdecl *)(struct _object *)' unterschiedlich
Processor.c(387) : warning C4047: 'initializing' : Anzahl der Dereferenzierungen
 bei 'int (__cdecl *)(struct _object *,struct _iobuf *,int )' und 'struct _objec
t *(__cdecl *)(struct _object *,char *)' unterschiedlich
error: command 'C:\Programme\DevStudio\VC\BIN\cl.exe' failed with exit status 2

C:\Sab-pyth-0.5>
--------------------

-- 
Guenter Radestock, Universitaetsbibliothek Karlsruhe
[EMAIL PROTECTED]
http://www.ubka.uni-karlsruhe.de/~guenter

Reply via email to