From 7dbd812124e5baa08aa5299370e09665e0026675 Mon Sep 17 00:00:00 2001 From: jroitgrund Date: Wed, 16 Sep 2020 22:20:40 +0200 Subject: [PATCH] Fix ujson dep for python2 (#862) Co-authored-by: Jonathan Roitgrund --- setup.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 6d38383a..a050ff21 100755 --- a/setup.py +++ b/setup.py @@ -12,13 +12,9 @@ 'backports.functools_lru_cache; python_version<"3.2"', 'jedi>=0.17.0,<0.18.0', 'python-jsonrpc-server>=0.4.0', - 'pluggy'] - -if sys.version_info[0] == 2: - install_requires.append('ujson<=2.0.3; platform_system!="Windows"') -else: - install_requires.append('ujson>=3.0.0') - + 'pluggy', + 'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"', + 'ujson>=3.0.0 ; python_version>"3"'] setup( name='python-language-server',