Skip to content

Commit

Permalink
Remove ujson dependency on Windows (requires MSVC compiler) (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz authored and ccordoba12 committed Dec 2, 2019
1 parent c3bb2f2 commit 143d993
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion pyls/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import logging.config
import sys

import ujson as json
try:
import ujson as json
except Exception: # pylint: disable=broad-except
import json

from .python_ls import (PythonLanguageServer, start_io_lang_server,
start_tcp_lang_server)
Expand Down
6 changes: 5 additions & 1 deletion pyls/plugins/pylint_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
import logging
import sys

import ujson as json
from pylint.epylint import py_run
from pyls import hookimpl, lsp

try:
import ujson as json
except Exception: # pylint: disable=broad-except
import json

log = logging.getLogger(__name__)


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
'future>=0.14.0; python_version<"3"',
'backports.functools_lru_cache; python_version<"3.2"',
'jedi>=0.14.1,<0.16',
'python-jsonrpc-server>=0.3.0',
'python-jsonrpc-server>=0.3.2',
'pluggy',
'ujson<=1.35'
'ujson<=1.35; platform_system!="Windows"'
],

# List additional groups of dependencies here (e.g. development
Expand Down

0 comments on commit 143d993

Please sign in to comment.