mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
another patch from Stphane Bidoul for Python bindings on Windows small
* python/setup.py.in: another patch from Stphane Bidoul for Python bindings on Windows * doc/parsedecl.py: small cleanup Daniel
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Wed Nov 27 09:00:00 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* python/setup.py.in: another patch from St<53>phane Bidoul for
|
||||||
|
Python bindings on Windows
|
||||||
|
* doc/parsedecl.py: small cleanup
|
||||||
|
|
||||||
Mon Nov 25 17:28:53 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Mon Nov 25 17:28:53 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* libxml.spec.in configure.in: add a line in %changelog for releases
|
* libxml.spec.in configure.in: add a line in %changelog for releases
|
||||||
|
@ -530,10 +530,6 @@ def analyzeXMLDoc(doc):
|
|||||||
for description in descriptions:
|
for description in descriptions:
|
||||||
analyzeXMLDescription(doc, description)
|
analyzeXMLDescription(doc, description)
|
||||||
|
|
||||||
doc = libxml2.parseFile("xml/c14n.xml");
|
|
||||||
analyzeXMLDoc(doc)
|
|
||||||
doc.freeDoc()
|
|
||||||
|
|
||||||
xmlfiles = 0
|
xmlfiles = 0
|
||||||
filenames = os.listdir("xml")
|
filenames = os.listdir("xml")
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
import sys, os
|
import sys, os
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
|
||||||
# Below ROOT, we expect to find include, include/libxml2, lib and bin
|
# Below ROOT, we expect to find include, include/libxml2, lib and bin.
|
||||||
# TBC: on unix, it is not needed (but should not harm),
|
# On *nix, it is not needed (but should not harm),
|
||||||
# on Windows, it can be set by configure.js
|
# on Windows, it is set by configure.js.
|
||||||
ROOT = r'../../_bin'
|
ROOT = r'@prefix@'
|
||||||
|
|
||||||
# If this flag is set (windows only),
|
# If this flag is set (windows only),
|
||||||
# a private copy of the dlls are included in the package.
|
# a private copy of the dlls are included in the package.
|
||||||
@ -168,22 +168,31 @@ libs = [libraryPrefix + "xml2"] + platformLibs
|
|||||||
macros = []
|
macros = []
|
||||||
if with_xslt == 1:
|
if with_xslt == 1:
|
||||||
descr = "libxml2 and libxslt package"
|
descr = "libxml2 and libxslt package"
|
||||||
|
if not sys.platform.startswith('win'):
|
||||||
#
|
#
|
||||||
# We are gonna build 2 identical shared libs with merge initializing
|
# We are gonna build 2 identical shared libs with merge initializing
|
||||||
# both libxml2mod and libxsltmod
|
# both libxml2mod and libxsltmod
|
||||||
#
|
#
|
||||||
c_files = c_files + ['libxslt-py.c', 'libxslt.c']
|
c_files = c_files + ['libxslt-py.c', 'libxslt.c']
|
||||||
|
xslt_c_files = c_files
|
||||||
|
macros.append(('MERGED_MODULES', '1'))
|
||||||
|
else:
|
||||||
|
#
|
||||||
|
# On windows the MERGED_MODULE option is not needed
|
||||||
|
# (and does not work)
|
||||||
|
#
|
||||||
|
xslt_c_files = ['libxslt-py.c', 'libxslt.c', 'types.c']
|
||||||
|
libs.insert(0, libraryPrefix + 'exslt')
|
||||||
libs.insert(0, libraryPrefix + 'xslt')
|
libs.insert(0, libraryPrefix + 'xslt')
|
||||||
includes.append(xslt_includes)
|
includes.append(xslt_includes)
|
||||||
modules.append('libxslt')
|
modules.append('libxslt')
|
||||||
macros.append(('MERGED_MODULES', '1'))
|
|
||||||
|
|
||||||
|
|
||||||
extens=[Extension('libxml2mod', c_files, include_dirs=includes,
|
extens=[Extension('libxml2mod', c_files, include_dirs=includes,
|
||||||
library_dirs=libdirs,
|
library_dirs=libdirs,
|
||||||
libraries=libs, define_macros=macros)]
|
libraries=libs, define_macros=macros)]
|
||||||
if with_xslt == 1:
|
if with_xslt == 1:
|
||||||
extens.append(Extension('libxsltmod', c_files, include_dirs=includes,
|
extens.append(Extension('libxsltmod', xslt_c_files, include_dirs=includes,
|
||||||
library_dirs=libdirs,
|
library_dirs=libdirs,
|
||||||
libraries=libs))
|
libraries=libs))
|
||||||
|
|
||||||
@ -206,9 +215,8 @@ else:
|
|||||||
data_files = []
|
data_files = []
|
||||||
|
|
||||||
setup (name = "libxml2-python",
|
setup (name = "libxml2-python",
|
||||||
# TBC: extract the version number from somewhere
|
# On *nix, the version number is created from setup.py.in
|
||||||
# On *nix, this is created from setup.py.in
|
# On windows, it is set by configure.js
|
||||||
# On windows, this could be set by configure.js
|
|
||||||
version = "@LIBXML_VERSION@",
|
version = "@LIBXML_VERSION@",
|
||||||
description = descr,
|
description = descr,
|
||||||
author = "Daniel Veillard",
|
author = "Daniel Veillard",
|
||||||
|
Reference in New Issue
Block a user