File tree 1 file changed +16
-5
lines changed 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from setuptools import find_packages , setup
3
+ import os
4
+ import sys
3
5
import versioneer
4
6
5
7
README = open ('README.rst' , 'r' ).read ()
6
8
7
9
10
+ install_requires = [
11
+ 'future>=0.14.0; python_version<"3"' ,
12
+ 'futures; python_version<"3.2"' ,
13
+ ]
14
+
15
+ if sys .version_info [0 ] == 2 :
16
+ if os .name != 'nt' :
17
+ install_requires .append ('ujson<=1.35' )
18
+ else :
19
+ install_requires .append ('ujson>=2' )
20
+
21
+
22
+
8
23
setup (
9
24
name = 'python-jsonrpc-server' ,
10
25
31
46
# your project is installed. For an analysis of "install_requires" vs pip's
32
47
# requirements files see:
33
48
# https://packaging.python.org/en/latest/requirements.html
34
- install_requires = [
35
- 'future>=0.14.0; python_version<"3"' ,
36
- 'futures; python_version<"3.2"' ,
37
- 'ujson>=2; python_version>="3.5"' ,
38
- ],
49
+ install_requires = install_requires ,
39
50
40
51
# List additional groups of dependencies here (e.g. development
41
52
# dependencies). You can install these using the following syntax,
You can’t perform that action at this time.
0 commit comments