Skip to content

Commit 7dbd812

Browse files
jroitgrundJonathan Roitgrund
and
Jonathan Roitgrund
authored
Fix ujson dep for python2 (#862)
Co-authored-by: Jonathan Roitgrund <[email protected]>
1 parent eb479ff commit 7dbd812

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

setup.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
'backports.functools_lru_cache; python_version<"3.2"',
1313
'jedi>=0.17.0,<0.18.0',
1414
'python-jsonrpc-server>=0.4.0',
15-
'pluggy']
16-
17-
if sys.version_info[0] == 2:
18-
install_requires.append('ujson<=2.0.3; platform_system!="Windows"')
19-
else:
20-
install_requires.append('ujson>=3.0.0')
21-
15+
'pluggy',
16+
'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"',
17+
'ujson>=3.0.0 ; python_version>"3"']
2218

2319
setup(
2420
name='python-language-server',

0 commit comments

Comments
 (0)