Scrapy, a fast high-level web crawling & scraping framework for Python.
switched default selectors backend to lxml
Pablo Hoffman6e8edbd72ef2
diff --git a/debian/control b/debian/controlindex 68376f76f..7cd4013c6 100644--- a/debian/control+++ b/debian/control@@ -2,13 +2,13 @@ Source: scrapy-SUFFIXSection: pythonPriority: optionalMaintainer: Insophia Team <[email protected]>-Build-Depends: debhelper (>= 7.0.50), python (>=2.6), python-twisted, python-w3lib+Build-Depends: debhelper (>= 7.0.50), python (>=2.6), python-twisted, python-w3lib, python-lxmlStandards-Version: 3.8.4Homepage: http://scrapy.org/Package: scrapy-SUFFIXArchitecture: all-Depends: ${python:Depends}, python-libxml2, python-twisted, python-openssl, python-w3lib (>= 1.1-r23)+Depends: ${python:Depends}, python-lxml, python-twisted, python-openssl, python-w3lib (>= 1.1-r23)Recommends: python-setuptoolsConflicts: python-scrapy, scrapy, scrapy-0.11Provides: python-scrapy, scrapydiff --git a/docs/intro/install.rst b/docs/intro/install.rstindex 4f7aa52be..4f6e30fec 100644--- a/docs/intro/install.rst+++ b/docs/intro/install.rst@@ -111,7 +111,7 @@ Debian or Ubuntu (9.04 or older)If you're running Debian Linux, run the following command as root::- apt-get install python-twisted python-libxml2 python-pyopenssl python-simplejson+ apt-get install python-twisted python-lxmlxml python-pyopenssl python-simplejsonThen::@@ -124,7 +124,7 @@ Arch LinuxIf you are running Arch Linux, run the following command as root::- pacman -S twisted libxml2 pyopenssl python-simplejson+ pacman -S twisted python-lxml pyopenssl python-simplejsonThen::diff --git a/scrapy/selector/__init__.py b/scrapy/selector/__init__.pyindex 392108ea7..e9af791ac 100644--- a/scrapy/selector/__init__.py+++ b/scrapy/selector/__init__.py@@ -18,13 +18,13 @@ elif settings['SELECTORS_BACKEND'] == 'dummy':from scrapy.selector.dummysel import *else:try:- import libxml2+ import lxmlexcept ImportError:try:- import lxml+ import libxml2except ImportError:from scrapy.selector.dummysel import *else:- from scrapy.selector.lxmlsel import *+ from scrapy.selector.libxml2sel import *else:- from scrapy.selector.libxml2sel import *+ from scrapy.selector.lxmlsel import *diff --git a/setup.py b/setup.pyindex 7bcd127a4..a085fa450 100644--- a/setup.py+++ b/setup.py@@ -120,12 +120,8 @@ try:except ImportError:from distutils.core import setupelse:- setup_args['install_requires'] = ['Twisted>=8.0', 'w3lib>=1.1', 'pyOpenSSL']+ setup_args['install_requires'] = ['Twisted>=8.0', 'w3lib>=1.1', 'lxml', 'pyOpenSSL']if sys.version_info < (2, 6):setup_args['install_requires'] += ['simplejson']- try:- import libxml2- except ImportError:- setup_args['install_requires'] += ['lxml']setup(**setup_args)