From 0d132cffc1733447f0fa9624f0265369a7f8c02a Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 23 Dec 2002 14:43:32 +0000 Subject: [PATCH] =?UTF-8?q?patch=20from=20St=E9phane=20Bidoul=20for=20Pyth?= =?UTF-8?q?on=202.1=20Daniel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * python/libxml.c python/setup.py.in: patch from Stéphane Bidoul for Python 2.1 Daniel --- ChangeLog | 5 +++++ python/libxml.c | 4 ++++ python/setup.py.in | 6 +++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cf92dd30..b9381eee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 23 15:42:24 CET 2002 Daniel Veillard + + * python/libxml.c python/setup.py.in: patch from Stéphane Bidoul + for Python 2.1 + Sun Dec 22 11:24:06 CET 2002 Daniel Veillard * testC14N.c vms/config.vms: applied Craig A. Berry patches for VMS diff --git a/python/libxml.c b/python/libxml.c index 55bee241..b48389ba 100644 --- a/python/libxml.c +++ b/python/libxml.c @@ -25,6 +25,10 @@ #include "libxml_wrap.h" #include "libxml2-py.h" +#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf) +#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) +#endif + /* #define DEBUG */ /* #define DEBUG_SAX */ /* #define DEBUG_XPATH */ diff --git a/python/setup.py.in b/python/setup.py.in index cca1f040..f1c09b00 100755 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -209,7 +209,11 @@ if missing("MANIFEST"): if WITHDLLS: ext_package = "libxmlmods" - data_files = [("lib/site-packages/libxmlmods",dlls)] + if sys.version >= "2.2": + base = "lib/site-packages/" + else: + base = "" + data_files = [(base+"libxmlmods",dlls)] else: ext_package = None data_files = []