mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
remove ujson as default non-dev dependency (still works as fallback if installed), because ujson doesn't ship wheels
This commit is contained in:
parent
5f699883dd
commit
6215272786
1
setup.py
1
setup.py
|
@ -193,7 +193,6 @@ def setup_package():
|
||||||
'thinc>=5.0.0,<5.1.0',
|
'thinc>=5.0.0,<5.1.0',
|
||||||
'plac',
|
'plac',
|
||||||
'six',
|
'six',
|
||||||
'ujson',
|
|
||||||
'cloudpickle',
|
'cloudpickle',
|
||||||
'sputnik>=0.9.2,<0.10.0'],
|
'sputnik>=0.9.2,<0.10.0'],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import numpy
|
import numpy
|
||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import ujson
|
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -10,7 +10,10 @@ from preshed.maps cimport map_iter, key_t
|
||||||
|
|
||||||
from .typedefs cimport hash_t
|
from .typedefs cimport hash_t
|
||||||
|
|
||||||
import ujson as json
|
try:
|
||||||
|
import ujson as json
|
||||||
|
except ImportError:
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
cpdef hash_t hash_string(unicode string) except 0:
|
cpdef hash_t hash_string(unicode string) except 0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user