Skip to content

Commit 0d132cf

Browse files
author
Daniel Veillard
committed
patch from Stéphane Bidoul for Python 2.1 Daniel
* python/libxml.c python/setup.py.in: patch from Stéphane Bidoul for Python 2.1 Daniel
1 parent fe8aab9 commit 0d132cf

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Mon Dec 23 15:42:24 CET 2002 Daniel Veillard <daniel@veillard.com>
2+
3+
* python/libxml.c python/setup.py.in: patch from St�phane Bidoul
4+
for Python 2.1
5+
16
Sun Dec 22 11:24:06 CET 2002 Daniel Veillard <daniel@veillard.com>
27

38
* testC14N.c vms/config.vms: applied Craig A. Berry patches for VMS

python/libxml.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include "libxml_wrap.h"
2626
#include "libxml2-py.h"
2727

28+
#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf)
29+
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
30+
#endif
31+
2832
/* #define DEBUG */
2933
/* #define DEBUG_SAX */
3034
/* #define DEBUG_XPATH */

python/setup.py.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ if missing("MANIFEST"):
209209

210210
if WITHDLLS:
211211
ext_package = "libxmlmods"
212-
data_files = [("lib/site-packages/libxmlmods",dlls)]
212+
if sys.version >= "2.2":
213+
base = "lib/site-packages/"
214+
else:
215+
base = ""
216+
data_files = [(base+"libxmlmods",dlls)]
213217
else:
214218
ext_package = None
215219
data_files = []

0 commit comments

Comments
 (0)