From 0d53053669f48f66302c139882636179c764fed3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 19 Feb 2013 10:17:06 -0500 Subject: [PATCH] api: Fix need to manually update list of integrations. (imported from commit 6842230f939483d32acb023ad38c53cb627df149) --- setup.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 17ee2f7..73b7041 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,7 @@ import humbug import glob +import os.path from distutils.core import setup setup(name='humbug', @@ -20,9 +21,10 @@ setup(name='humbug', ], url='https://humbughq.com/dist/api/', packages=['humbug'], - data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"]), - ('share/humbug/integrations/trac', glob.glob('integrations/trac/*')), - ('share/humbug/integrations/nagios', glob.glob('integrations/nagios/*')), - ], + data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"])] + \ + [(os.path.join('share/humbug/', relpath), + glob.glob(os.path.join(relpath, '*'))) for relpath in + glob.glob("integrations/*") + ], scripts=["bin/humbug-send"], )