RE: [xml] python bindings on windows
- From: "Stéphane Bidoul" <stephane bidoul softwareag com>
- To: "'Hannu Krosing'" <hannu tm ee>, <xml gnome org>
- Subject: RE: [xml] python bindings on windows
- Date: Tue, 5 Nov 2002 09:55:04 +0100
BTW, which version did you build for ?
Libxml and libxslt CVS HEAD checked out on sunday,
Python 2.2.
What compiler did you use ?
MSVC
Anyway, I'd like to try them, are your python modules available
somewhere ?
I'll do that. Stay tuned.
This seems to be a nice workaroud for the case when you want to have
many different libxml2.dll's , and should also work when you have
libxml2.dll in %SYSTEMROOT%\system32.
That change is fairly straightforward, and should not break any
existing code since (as I understand it) libxml2mod is normally
not imported directly.
You could try to put libxml2mod.pyd in the directory libxml2mod and do
"from libxml2mod import *" in libxml2mod/__init__.py so you don't need
to change libxml2.py at all.
Interesting trick but I see a problem with libxsltmod
(which depends on libxslt.dll, which in turn depends
on libxml2 that would be in another directory):
libxml2mod/
libxml2mod/__init__.py # from libxml2mod import *
libxml2mod/libxml2mod.pyd
libxml2mod/libxml2.dll
libxsltmod
libxsltmod/__init__.py # from libxml2mod import *
libxsltmod/libxsltmod.pyd
libxsltmod/libxslt.dll # !!! depends on libxml2.dll !!!!
libxsltmod/libexslt.dll
Maybe the libxsltmod package could do a similar trick to import
libxsltmod.pyd from the libxml2mod directory
(maybe by changing sys.path temporarily)?
In the meantime, the setup.py that I posted manages
to adapt libxml2.py and libxslt.py during the build
process (they are generated anyway),
so it does not require changes to the unix side.
-sbi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]