File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 33import os
44from setuptools import setup , find_packages
55from distutils .core import Extension
6- import sys
76import platform
87
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+ ]
1613
1714# On Un*x the library is linked as -lrdkafka,
1815# while on windows we need the full librdkafka name.
@@ -51,6 +48,11 @@ def get_install_requirements(path):
5148 data_files = [('' , ['LICENSE.txt' ])],
5249 install_requires = INSTALL_REQUIRES ,
5350 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+ ],
5557 'dev' : get_install_requirements ("test-requirements.txt" )
5658 })
You can’t perform that action at this time.
0 commit comments