From ec8fc1944d7842d95bca070a16f7e5d0dc05b384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Fri, 2 Aug 2019 08:56:57 +0200 Subject: [PATCH] Add a constraint on lxml version to avoid an error when using Python 3.4 Based on https://github.com/scrapy/scrapy/pull/3918 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 53f6a1c4..6fe95fe1 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,8 @@ def has_environment_marker_platform_impl_support(): install_requires = [ 'w3lib>=1.19.0', - 'lxml>=2.3', + 'lxml;python_version!="3.4"', + 'lxml<=4.3.5;python_version=="3.4"', 'six>=1.5.2', 'cssselect>=0.9' ]