FS#31857 - [calibre] New optional dependecy in 3.0: cssselect
Attached to Project:
Arch Linux
Opened by Simon Sapin (SimonSapin) - Tuesday, 09 October 2012, 11:02 GMT
Last edited by Giovanni Scafora (giovanni) - Sunday, 21 October 2012, 08:23 GMT
Opened by Simon Sapin (SimonSapin) - Tuesday, 09 October 2012, 11:02 GMT
Last edited by Giovanni Scafora (giovanni) - Sunday, 21 October 2012, 08:23 GMT
|
Details
lxml 3.0 was just released.
The lxml.cssselect functionnality that was previously in the same package has moved to a separate PyPI package: cssselect. cssselect is packaged in the AUR as python-cssselect and python2-cssselect. It should be added as an optional dependency to lxml when 3.0 is packaged. |
This task depends upon
Closed by Giovanni Scafora (giovanni)
Sunday, 21 October 2012, 08:23 GMT
Reason for closing: Fixed
Additional comments about closing: Added python2-cssselect as dep
Sunday, 21 October 2012, 08:23 GMT
Reason for closing: Fixed
Additional comments about closing: Added python2-cssselect as dep
Of course, feel free to let me know if I missed something and this cssselect business affects other packages.
FS#32051:I've got a fix. python2-cssselect needs to be installed from the AUR, and this line needs to be added along with the other sed lines in the PKGBUILD:
sed -i -e "s:lxml.cssselect\ import\ css_to_xpath:cssselect\ import\ GenericTranslator:g" src/calibre/ebooks/oeb/stylizer.py
I know it's not a good fix since it depends on package from the AUR, but that's where the functionality is that used to be in lxml.
Calibre still needs lxml, including lxml.cssselect, for other things, so it doesn't remove that dependency completely.