mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update lxml in 64bit windows build to fix crashes when parsing using html5lib
This commit is contained in:
parent
9b60f3cae6
commit
12ab1a706b
@ -382,20 +382,14 @@ lxml
|
|||||||
|
|
||||||
Get the source from: 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::
|
Change the include dirs and lib dirs by editing setupinfo.py and changing the
|
||||||
if option == 'cflags':
|
library_dirs() function to return::
|
||||||
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
|
return ['C:/cygwin/home/kovid/sw/lib']
|
||||||
#ifndef LIBXML2_NEW_BUFFER
|
|
||||||
to
|
and the include_dirs() function to return
|
||||||
#ifdef LIBXML2_NEW_BUFFER
|
|
||||||
# define xmlBufContent(buf) xmlBufferContent(buf)
|
return ['C:/cygwin/home/kovid/sw/include/libxml2', 'C:/cygwin/home/kovid/sw/include']
|
||||||
# define xmlBufLength(buf) xmlBufferLength(buf)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Run::
|
Run::
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user