1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-20 16:43:05 +03: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:
Daniel Veillard
2003-04-27 22:14:07 +00:00
parent 34656b48e3
commit 94bb2f1ca6
3 changed files with 14 additions and 1 deletions

View File

@ -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"):