File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 23
23
# SOFTWARE.
24
24
25
25
execfile ('zerorpc/version.py' )
26
+ import sys
27
+
26
28
27
29
try :
28
30
from setuptools import setup
29
31
except ImportError :
30
32
from distutils .core import setup
31
33
32
34
35
+ requirements = [
36
+ 'gevent' ,
37
+ 'msgpack-python' ,
38
+ 'pyzmq>=2.2.0.1'
39
+ ]
40
+ if sys .version_info < (2 , 7 ):
41
+ requirements .append ('argparse' )
42
+
43
+
33
44
setup (
34
45
name = 'zerorpc' ,
35
46
version = __version__ ,
36
47
description = 'zerorpc is a flexible RPC based on zeromq.' ,
37
48
author = __author__ ,
38
49
url = 'https://github.com/dotcloud/zerorpc-python' ,
39
50
packages = ['zerorpc' ],
40
- install_requires = [
41
- 'argparse' ,
42
- 'gevent' ,
43
- 'msgpack-python' ,
44
- 'pyzmq>=2.2.0.1' ,
45
- ],
51
+ install_requires = requirements ,
46
52
tests_require = ['nose' ],
47
53
test_suite = 'nose.collector' ,
48
54
zip_safe = False ,
You can’t perform that action at this time.
0 commit comments