From c46f4748c7602d36b411d8665f0b0232d2342469 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Nov 2012 11:30:00 +0530 Subject: [PATCH] 64 bit lxml --- setup/installer/windows/notes.rst | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/setup/installer/windows/notes.rst b/setup/installer/windows/notes.rst index 9d0a283e9e..31bd7ec06c 100644 --- a/setup/installer/windows/notes.rst +++ b/setup/installer/windows/notes.rst @@ -376,7 +376,7 @@ Run:: nmake /f Makefile.msvc mkdir -p ~/sw/include/libxml2/libxml cp include/libxml/*.h ~/sw/include/libxml2/libxml/ - find . -name '*.dll' -o -name '*.dll.manifest' -exec cp "{}" ~/sw/bin/ \; + find . -type f \( -name "*.dll" -o -name "*.dll.manifest" \) -exec cp "{}" ~/sw/bin/ \; find . -name libxml2.lib -exec cp "{}" ~/sw/lib/ \; libxslt @@ -391,14 +391,31 @@ Run:: mkdir -p ~/sw/include/libxslt ~/sw/include/libexslt cp libxslt/*.h ~/sw/include/libxslt/ cp libexslt/*.h ~/sw/include/libexslt/ - find . -name '*.dll' -o -name '*.dll.manifest' -exec cp "{}" ~/sw/bin/ \; + find . -type f \( -name "*.dll" -o -name "*.dll.manifest" \) -exec cp "{}" ~/sw/bin/ \; find . -name lib*xslt.lib -exec cp "{}" ~/sw/lib/ \; lxml ------ -http://pypi.python.org/pypi/lxml +Get the source from: http://pypi.python.org/pypi/lxml +Add the following to the top of setupoptions.py:: + if option == 'cflags': + return ['-IC:/cygwin/home/kovid/sw/include/libxml2', + '-IC:/cygwin/home/kovid/sw/include'] + else: + return ['-LC:/cygwin/home/kovid/sw/lib'] + +Then, edit src/lxml/includes/etree_defs.h and change the section starting with +#ifndef LIBXML2_NEW_BUFFER +to +#ifdef LIBXML2_NEW_BUFFER +# define xmlBufContent(buf) xmlBufferContent(buf) +# define xmlBufLength(buf) xmlBufferLength(buf) +#endif + +Run:: + python setup.py install Python Imaging Library ------------------------