Skip to content

Commit

Permalink
Fix ujson dep for python2 (#862)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Roitgrund <jroitgrund@palantir.com>
  • Loading branch information
jroitgrund and Jonathan Roitgrund committed Sep 16, 2020
1 parent eb479ff commit 7dbd812
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions setup.py
Expand Up @@ -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',
Expand Down

0 comments on commit 7dbd812

Please sign in to comment.