Commit 94bb2f1c authored by Daniel Veillard's avatar Daniel Veillard
Browse files

applied patch from Stéphane Bidoul for the Python bindings on the new

* win32/configure.js python/setup.py.in: applied patch
  from Stéphane Bidoul for the Python bindings on the new
  release.
Daniel
parent 34656b48
Mon Apr 28 00:12:11 CEST 2003 Daniel Veillard <daniel@veillard.com>
* win32/configure.js python/setup.py.in: applied patch
from Stphane 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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment