File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
from setuptools import setup , find_packages
5
5
from distutils .core import Extension
6
- import sys
7
6
import platform
8
7
9
- INSTALL_REQUIRES = list ()
10
-
11
- if sys .version_info [0 ] < 3 :
12
- avro = 'avro'
13
- INSTALL_REQUIRES .extend (['futures' , 'enum34' , 'requests' ])
14
- else :
15
- avro = 'avro-python3'
8
+ INSTALL_REQUIRES = [
9
+ 'futures;python_version<"3.2"' ,
10
+ 'enum34;python_version<"3.4"' ,
11
+ 'requests;python_version<"3.2"'
12
+ ]
16
13
17
14
# On Un*x the library is linked as -lrdkafka,
18
15
# while on windows we need the full librdkafka name.
@@ -51,6 +48,11 @@ def get_install_requirements(path):
51
48
data_files = [('' , ['LICENSE.txt' ])],
52
49
install_requires = INSTALL_REQUIRES ,
53
50
extras_require = {
54
- 'avro' : ['fastavro' , 'requests' , avro ],
51
+ 'avro' : [
52
+ 'fastavro' ,
53
+ 'requests' ,
54
+ 'avro;python_version<"3.0"' ,
55
+ 'avro-python3;python_version>"3.0"'
56
+ ],
55
57
'dev' : get_install_requirements ("test-requirements.txt" )
56
58
})
You can’t perform that action at this time.
0 commit comments