Update lxml in 64bit windows build to fix crashes when parsing using html5lib

This commit is contained in:
Kovid Goyal 2013-12-19 09:40:36 +05:30
parent 9b60f3cae6
commit 12ab1a706b

View File

@ -382,20 +382,14 @@ 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']
Change the include dirs and lib dirs by editing setupinfo.py and changing the
library_dirs() function to return::
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
return ['C:/cygwin/home/kovid/sw/lib']
and the include_dirs() function to return
return ['C:/cygwin/home/kovid/sw/include/libxml2', 'C:/cygwin/home/kovid/sw/include']
Run::
python setup.py install