diff --git a/python_apps/airtime_analyzer/setup.py b/python_apps/airtime_analyzer/setup.py index d819a171a..915e4cb38 100644 --- a/python_apps/airtime_analyzer/setup.py +++ b/python_apps/airtime_analyzer/setup.py @@ -19,6 +19,28 @@ else: ('/etc/init.d', ['install/sysvinit/airtime_analyzer'])] print(data_files) +dependencies = [ + 'mutagen~=1.43.0', + 'pika~=1.1.0', + 'daemon', + 'file-magic', + 'nose', + 'coverage', + 'mock', + 'python-daemon==1.6', + 'requests>=2.7.0', + # These next 3 are required for requests to support SSL with SNI. Learned this the hard way... + # What sucks is that GCC is required to pip install these. + #'ndg-httpsclient', + #'pyasn1', + #'pyopenssl' +] + +if sys.version_info >= (3, 0): + dependencies += ['rgain3'] +else: + dependencies += ['rgain'] + setup(name='airtime_analyzer', version='0.1', description='Airtime Analyzer Worker and File Importer', @@ -28,23 +50,7 @@ setup(name='airtime_analyzer', license='MIT', packages=['airtime_analyzer'], scripts=['bin/airtime_analyzer'], - install_requires=[ - 'mutagen~=1.43.0', # got rid of specific version requirement - 'pika', - 'daemon', - 'file-magic', - 'nose', - 'coverage', - 'mock', - 'python-daemon==1.6', - 'requests>=2.7.0', - 'rgain', - # These next 3 are required for requests to support SSL with SNI. Learned this the hard way... - # What sucks is that GCC is required to pip install these. - #'ndg-httpsclient', - #'pyasn1', - #'pyopenssl' - ], + install_requires=dependencies, zip_safe=False, data_files=data_files)