remove ujson as default non-dev dependency (still works as fallback if installed), because ujson doesn't ship wheels

This commit is contained in:
Henning Peters 2016-04-12 11:28:07 +02:00
parent 5f699883dd
commit 6215272786
3 changed files with 4 additions and 3 deletions

View File

@ -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=[

View File

@ -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

View File

@ -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: