From 4e8dbe9598cab324c5883f21257dd476c45815aa Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 27 Dec 2015 23:38:02 +0100 Subject: [PATCH] Only pin down lxml version for PyPy --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 0a4efa6..bffa14b 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ Vdirsyncer is a synchronization tool for vdir. See the README for more details. from setuptools import find_packages, setup +import platform setup( @@ -37,8 +38,12 @@ setup( 'click-threading', # https://github.com/kennethreitz/requests/issues/2930 'requests !=2.9.0', - # https://github.com/untitaker/vdirsyncer/issues/298 - 'lxml >=3.1, <=3.4.4', + 'lxml >=3.1' + ( + # https://github.com/untitaker/vdirsyncer/issues/298 + ', <=3.4.4' + if platform.python_implementation() == 'PyPy' + else '' + ), # https://github.com/sigmavirus24/requests-toolbelt/pull/28 'requests_toolbelt >=0.5.0', 'atomicwrites'