mirror of
https://github.com/GNOME/libxml2.git
synced 2025-04-06 19:20:23 +08:00
applied patch from Stphane Bidoul for the Python bindings on the new
* win32/configure.js python/setup.py.in: applied patch from Stphane Bidoul for the Python bindings on the new release. Daniel
This commit is contained in:
parent
34656b48e3
commit
94bb2f1ca6
@ -1,3 +1,9 @@
|
||||
Mon Apr 28 00:12:11 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* win32/configure.js python/setup.py.in: applied patch
|
||||
from Stéphane Bidoul for the Python bindings on the new
|
||||
release.
|
||||
|
||||
Sun Apr 27 17:56:21 CEST 2003 Igor Zlatkovic <igor@zlatkovic.com>
|
||||
|
||||
* debugXML.c: included libxml/uri.h for xmlCanonicPath
|
||||
|
@ -10,6 +10,9 @@ from distutils.core import setup, Extension
|
||||
# on Windows, it is set by configure.js.
|
||||
ROOT = r'@prefix@'
|
||||
|
||||
# Thread-enabled libxml2
|
||||
with_threads = @WITH_THREADS@
|
||||
|
||||
# If this flag is set (windows only),
|
||||
# a private copy of the dlls are included in the package.
|
||||
# If this flag is not set, the libxml2 and libxslt
|
||||
@ -166,6 +169,8 @@ c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ]
|
||||
includes= [xml_includes, iconv_includes]
|
||||
libs = [libraryPrefix + "xml2"] + platformLibs
|
||||
macros = []
|
||||
if with_threads:
|
||||
macros.append(('_REENTRANT','1'))
|
||||
if with_xslt == 1:
|
||||
descr = "libxml2 and libxslt package"
|
||||
if not sys.platform.startswith('win'):
|
||||
@ -194,7 +199,7 @@ extens=[Extension('libxml2mod', c_files, include_dirs=includes,
|
||||
if with_xslt == 1:
|
||||
extens.append(Extension('libxsltmod', xslt_c_files, include_dirs=includes,
|
||||
library_dirs=libdirs,
|
||||
libraries=libs))
|
||||
libraries=libs, define_macros=macros))
|
||||
|
||||
if missing("MANIFEST"):
|
||||
|
||||
|
@ -274,6 +274,8 @@ function configureLibxmlPy()
|
||||
verMajor + "." + verMinor + "." + verMicro));
|
||||
} else if (s.search(/\@prefix\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@prefix\@/, buildPrefix));
|
||||
} else if (s.search(/\@WITH_THREADS\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads == "no"? "0" : "1"));
|
||||
} else
|
||||
of.WriteLine(ln);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user