More work on switching pypo to use setuptools

This commit is contained in:
Duncan Sommerville 2014-12-17 17:05:55 -05:00
parent 29917ebf63
commit 4749ef111c
1 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,13 @@
from setuptools import setup from setuptools import setup
from subprocess import call from subprocess import call
import sys import sys
import os
# Allows us to avoid installing the upstart init script when deploying airtime_analyzer script_path = os.path.dirname(os.path.realpath(__file__))
# on Airtime Pro: print script_path
os.chdir(script_path)
# Allows us to avoid installing the upstart init script when deploying on Airtime Pro:
if '--no-init-script' in sys.argv: if '--no-init-script' in sys.argv:
data_files = [] data_files = []
sys.argv.remove('--no-init-script') # super hax sys.argv.remove('--no-init-script') # super hax
@ -13,7 +17,7 @@ else:
setup(name='airtime-playout', setup(name='airtime-playout',
version='0.1', version='0.1',
description='Airtime Analyzer Worker and File Importer', description='Airtime Playout Engine',
url='http://github.com/sourcefabric/Airtime', url='http://github.com/sourcefabric/Airtime',
author='sourcefabric', author='sourcefabric',
license='AGPLv3', license='AGPLv3',