2014-03-05 18:15:25 +01:00
|
|
|
from setuptools import setup
|
2014-04-05 01:08:57 +02:00
|
|
|
from subprocess import call
|
|
|
|
import sys
|
|
|
|
|
|
|
|
# Allows us to avoid installing the upstart init script when deploying airtime_analyzer
|
|
|
|
# on Airtime Pro:
|
|
|
|
if '--no-init-script' in sys.argv:
|
|
|
|
data_files = []
|
2014-04-05 01:46:59 +02:00
|
|
|
sys.argv.remove('--no-init-script') # super hax
|
2014-04-05 01:08:57 +02:00
|
|
|
else:
|
|
|
|
data_files = [('/etc/init', ['install/upstart/airtime_analyzer.conf'])]
|
|
|
|
print data_files
|
2014-03-05 18:15:25 +01:00
|
|
|
|
|
|
|
setup(name='airtime_analyzer',
|
|
|
|
version='0.1',
|
|
|
|
description='Airtime Analyzer Worker and File Importer',
|
|
|
|
url='http://github.com/sourcefabric/Airtime',
|
|
|
|
author='Albert Santoni',
|
|
|
|
author_email='albert.santoni@sourcefabric.org',
|
|
|
|
license='MIT',
|
|
|
|
packages=['airtime_analyzer'],
|
|
|
|
scripts=['bin/airtime_analyzer'],
|
|
|
|
install_requires=[
|
|
|
|
'mutagen',
|
|
|
|
'pika',
|
2015-05-19 19:45:08 +02:00
|
|
|
'daemon',
|
2014-05-01 00:46:37 +02:00
|
|
|
'python-magic',
|
2014-03-05 18:15:25 +01:00
|
|
|
'nose',
|
2014-03-26 20:06:48 +01:00
|
|
|
'coverage',
|
|
|
|
'mock',
|
2015-01-22 18:42:05 +01:00
|
|
|
'python-daemon==1.6',
|
2015-05-20 16:36:55 +02:00
|
|
|
'requests>=2.7.0',
|
2014-11-07 18:49:10 +01:00
|
|
|
'apache-libcloud',
|
2014-12-11 20:12:41 +01:00
|
|
|
'rgain',
|
2015-01-06 21:44:34 +01:00
|
|
|
'boto',
|
2014-11-12 00:41:09 +01:00
|
|
|
# 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'
|
2014-03-05 18:15:25 +01:00
|
|
|
],
|
2014-04-05 01:08:57 +02:00
|
|
|
zip_safe=False,
|
|
|
|
data_files=data_files)
|
|
|
|
|
|
|
|
# Reload the initctl config so that "service start airtime_analyzer" works
|
|
|
|
if data_files:
|
|
|
|
print "Reloading initctl configuration"
|
|
|
|
call(['initctl', 'reload-configuration'])
|
|
|
|
print "Run \"sudo service airtime_analyzer restart\" now."
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: Should we start the analyzer here or not?
|