From 013167bba79a51e35c85c9e0caf2d53d3b6a752f Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 16 Mar 2009 17:34:35 -0400 Subject: [PATCH] setup.py: Build plugin list automatically Signed-off-by: James Vega --- setup.py | 60 +++----------------------------------------------------- 1 file changed, 3 insertions(+), 57 deletions(-) diff --git a/setup.py b/setup.py index a11793042..f5d24445d 100644 --- a/setup.py +++ b/setup.py @@ -29,63 +29,6 @@ # POSSIBILITY OF SUCH DAMAGE. ### -plugins = [ - 'Admin', - 'Alias', - 'Anonymous', - 'AutoMode', - 'BadWords', - 'Channel', - 'ChannelLogger', - 'ChannelStats', - 'Config', - 'Ctcp', - 'Dict', - 'Factoids', - 'Filter', - 'Format', - 'Games', - 'Google', - 'Herald', - 'Insult', - 'Internet', - 'Karma', - 'Lart', - 'Later', - 'Limiter', - 'Math', - 'Misc', - 'MoobotFactoids', - 'Network', - 'News', - 'NickCapture', - 'Nickometer', - 'Note', - 'Owner', - 'Plugin', - 'Praise', - 'Protector', - 'Quote', - 'QuoteGrabs', - 'Relay', - 'Reply', - 'RSS', - 'Scheduler', - 'Seen', - 'Services', - 'ShrinkUrl', - 'Status', - 'String', - 'Time', - 'Todo', - 'Topic', - 'Unix', - 'URL', - 'User', - 'Utilities', - 'Web', - ] - import sys if sys.version_info < (2, 3, 0): @@ -103,6 +46,9 @@ import glob import shutil import os.path +plugins = [s for s in os.listdir('plugins') if + os.path.exists(os.path.join('plugins', s, 'plugin.py'))] + def normalizeWhitespace(s): return ' '.join(s.split())